示例#1
0
        static void Main(string[] args)
        {
            Triangel trangle = new Triangel();

            trangle.getShape();
            trangle.printShape();

            Rectangel rectangl = new Rectangel();

            rectangl.getShape();
            rectangl.printShape();

            Console.ReadLine();
        }
示例#2
0
 public Triangel(Triangel t) : base(t.NameShape, t.ColorShape)
 {
     TriangleHeight = t.TriangleHeight;
     NumOfEdges     = t.NumOfEdges;
 }