public static void Main(string[] args) { AmericanAlligator Alligator = new AmericanAlligator(); Alligator.numTeeth = 50; Alligator.canFly = false; Alligator.canSwim = true; NileCrocodile Crocodile = new NileCrocodile(); Crocodile.numTeeth = 60; Crocodile.canFly = false; Crocodile.canSwim = true; AmericanCrow Crow = new AmericanCrow(); Crow.colorType = "black"; Crow.canFly = true; Crow.canSwim = false; CommonRaven Raven = new CommonRaven(); Raven.colorType = "slightly darker black"; Raven.canFly = true; Raven.canSwim = false; }
/// <summary> /// Method created for test /// </summary> /// <returns>Returns a string</returns> public static string CrocodileEat() { NileCrocodile Crocodile = new NileCrocodile(); return(Crocodile.Eat()); }
/// <summary> /// Method created for test /// </summary> /// <returns>Returns a string</returns> public static string CrocodileSleep() { NileCrocodile Crocodile = new NileCrocodile(); return(Crocodile.Sleep()); }