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(); }
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(); }