Example #1
0
        static void Main(string[] args)
        {
            Base b = new Base();
            b.Execute();
            b = new Derived();
            b.Execute();

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            Base b = new Base();

            b.Execute();
            b = new Derived();
            b.Execute();

            Console.Write("Press a key to exit");
            Console.ReadKey();
        }
Example #3
0
        static void Main(string[] args)
        {
            Base b = new Base();
            b.Execute();
            b = new Derived();
            b.Execute();

            Derived d = new Derived();
            d.Execute();

            Console.ReadKey();
        }
Example #4
0
        static void Main(string[] args)
        {
            Base b = new Base();

            b.Execute();
            b = new Derived();
            b.Execute();

            Derived d = new Derived();

            d.Execute();

            Console.ReadKey();
        }