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