Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Square square1 = new Square("square", 5);

            //square1.GetInfo;
            Console.WriteLine(square1.Area());
            global::System.Console.WriteLine(square1.Area());


            Circle circle1 = new Circle("circle", 10);

            circle1.GetInfo();
            Console.WriteLine();
            global::System.Console.WriteLine(circle1.Area());

            Circle circle2 = new Circle("circle", 20);

            circle2.GetInfo();
            Console.WriteLine(circle2.Area());
            Console.WriteLine(circle1.CircleNumber);
        }