Ejemplo n.º 1
0
        static void Main()
        {
            Figure figure1 = new Triangle(4, 5, 6);

            figure1.ShowInfo();

            Figure figure2 = new Square(5);

            figure2.ShowInfo();

            Figure figure3 = new Rectangle(5, 6);

            figure3.ShowInfo();

            Figure figure4 = new Circle(6);

            figure4.ShowInfo();

            Console.ReadKey();
        }