static void Main(string[] args) { Animal animal = new Animal(); Dog dog = new Dog("Snoopy"); dog.breed = "Beagle"; animal.WhatAreYou(); animal.jump(); dog.WhatAreYou(); Console.WriteLine(dog.breed); Console.WriteLine(dog.name); Console.ReadLine(); }
static void Main(string[] args) { Animal animal = new Animal(); Dog dog = new Dog("Snoopy"); dog.breed = "Beagle"; animal.WhatAreYou(); animal.jump(); dog.WhatAreYou(); Console.WriteLine(dog.breed); Console.WriteLine(dog.name); Console.ReadLine(); }