static void Main(string[] args) { Triangel trangle = new Triangel(); trangle.getShape(); trangle.printShape(); Rectangel rectangl = new Rectangel(); rectangl.getShape(); rectangl.printShape(); Console.ReadLine(); }
public Triangel(Triangel t) : base(t.NameShape, t.ColorShape) { TriangleHeight = t.TriangleHeight; NumOfEdges = t.NumOfEdges; }