Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Triangle");
            var triangle = new Triangle
            {
                symbol = '$',
                a      = 5
            };

            triangle.Draw();

            Console.WriteLine();
            Console.WriteLine("Rectrangl \n");
            var rectangle = new Rectangle
            {
                symbol = '-',
                a      = 5,
                b      = 10
            };

            rectangle.Draw();

            Console.WriteLine();
            Console.WriteLine("Line \n");

            var line = new Line
            {
                symbol = '-',
                a      = 5
            };

            line.Draw();
        }