예제 #1
0
        static void Main(string[] args)
        {
            MallardDuck turkey = new MallardDuck();
            Console.WriteLine(turkey.Fly());
            Console.WriteLine(turkey.Quack());

            WildTurkey wturkey = new WildTurkey();
            Console.WriteLine(wturkey.Fly());
            Console.WriteLine(wturkey.Gobble());
            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            MallardDuck turkey = new MallardDuck();

            Console.WriteLine(turkey.Fly());
            Console.WriteLine(turkey.Quack());
            Console.WriteLine(turkey.Info());
            WildTurkey wturkey = new WildTurkey();

            Console.WriteLine(wturkey.Fly());
            Console.WriteLine(wturkey.Gobble());
            Console.WriteLine(wturkey.Info());
            Console.ReadKey();
        }