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 bool</returns> public static bool RavenCanInherit() { CommonRaven Raven = new CommonRaven(); Raven.canFly = true; return(Raven.canFly); }
/// <summary> /// Method created for test /// </summary> /// <returns>Returns a string</returns> public static string RavenEat() { CommonRaven Raven = new CommonRaven(); return(Raven.Eat()); }
/// <summary> /// Method created for test /// </summary> /// <returns>Returns an int</returns> public static int RavenLayEggs() { CommonRaven Raven = new CommonRaven(); return(Raven.LayEggs()); }
/// <summary> /// Method created for test /// </summary> /// <returns>Returns a string</returns> public static string RavenSleep() { CommonRaven Raven = new CommonRaven(); return(Raven.Sleep()); }