Esempio n. 1
0
        static void Main(string[] args)
        {
            Shape s;

            s = new Rectangle();
            s.draw();
            s = new Circle();
            s.draw();
        }
Esempio n. 2
0
        public static void Main()
        {
            Program s;

            s = new Rectangle();
            s.draw();
            s = new Circle();
            s.draw();
            Console.ReadLine();
        }