static void Main(string[] args) { //Now we can create Cow and Duck objects and call the //AnimalSound() method on both Animal myDuck = new Duck(); Animal myCow = new Cow(); myCow.AnimalSound(); myDuck.AnimalSound(); }