예제 #1
0
        private void Execute2()
        {
            Animal aAnimal = new Animal();

            aAnimal.Active();
            // Eat.
            // Animal Sleep.

            Animal aDog = new Dog();

            aDog.Active();
            // Eat.
            // Animal Sleep.

            Animal aHuman = new Human();

            aHuman.Active();
            // Eat.
            // Human Sleep.
        }