예제 #1
0
        static void Main(string[] args)
        {
            Animal dog = new Dog();

            dog.printAnimal("dog");

            Animal cow = new Cow();

            cow.printAnimal("cow");

            Animal duck = new Duck();

            duck.printAnimal("duck");
        }