using System; namespace Dotmyself { /// /// A derived class of Shape : a polygon with three corners and three edges. /// Author : Hyacinthe MENIET /// class Triangle : Shape { public double Edge; public Triangle(String name, double edge) : base(name) { Edge = edge; } public override double Area() { return (Edge * Edge * Math.Sqrt(3)) / 4; } } }