Esempio n. 1
0
        static void Main(string[] args)
        {
            IDrawable rectangle = new Rectangle(4, 5);

            rectangle.Drow();

            IDrawable circle = new Circle(5);

            circle.Drow();
        }
        static void Main(string[] args)
        {
            int radiusInput = int.Parse(Console.ReadLine());

            IDrawable custumCircle = new Circle(radiusInput);

            int width  = int.Parse(Console.ReadLine());
            int height = int.Parse(Console.ReadLine());

            IDrawable custumRectangle = new Rectangle(width, height);

            custumCircle.Drow();

            custumRectangle.Drow();


            //Console.WriteLine("Hello World!");
        }