static void Main(string[] args) { Mammals myMammal = new Mammals(); //Console.WriteLine(myMammals.HasSkin); //myMammal.HasSkin = true; //Console.WriteLine(myMammal.HasHair); //myMammal.HasHair = true; //Console.WriteLine(myMammal.HasWarmBlood); //Console.WriteLine(myMammal.HasMamaryGlands); //Console.WriteLine(myMammal.HasOrgans); //Consloe.WriteLine(myMammal.HasSingleLowerBoneJaw); //Console.WriteLine(myMammal.HasDiphyodonty); //Console.WriteLine(myMammal.HasKidsNotInEggs); //Console.WriteLine(myMammal.HasThreeMiddleEarBones); Birds myBird = new Birds(); Console.WriteLine(myBird.HasFeathers); myBird.HasFeathers = true; Console.WriteLine(myBird.hasFeathes); Console.WriteLine(myBird.hasBeaks); Console.WriteLine(myBird.hasEggs); Console.WriteLine(myBird.hasWings); Console.WriteLine(myBird.hasBackbone); MythicalCreature myMythicalCreature = new MythicalCreature(); Console.WriteLine(myMythicalCreature.hasUniquePowers); Console.WriteLine(myMythicalCreature.numMyths); Console.WriteLine(myMythicalCreature.hasMultipleAnimals); }
static void Main(string[] args) { Mammals m = new Mammals(); Console.WriteLine(m.Move()); Console.WriteLine(m.Greet()); m = new Cat(); Console.WriteLine(m.Move()); Console.WriteLine(m.Greet()); m = new Dog(); Console.WriteLine(m.Move()); Console.WriteLine(m.Greet()); Console.WriteLine(); Reptiles r = new Reptiles(); Console.WriteLine(r.Move()); Console.WriteLine(r.Temperature()); r = new Crocodile(); Console.WriteLine(r.Move()); Console.WriteLine(r.Temperature()); Console.WriteLine(); Birds b = new Birds(); Console.WriteLine(b.Move()); Console.WriteLine(b.MakeNest()); b = new Owl(); Console.WriteLine(b.Move()); Console.WriteLine(b.MakeNest()); Console.WriteLine(); Fish f = new Fish(); Console.WriteLine(f.Move()); f = new Shark(); Console.WriteLine(f.Move()); Console.ReadKey(); }