public void AnimalTest() { //Animal animal = new Animal(); Sloth sloth = new Sloth(); Console.WriteLine(sloth.IsSlow); sloth.Move(); sloth.SayFurColor(); }
public void AnimalTests() { //Animal animal = new Animal(); Sloth sloth = new Sloth(); Console.WriteLine(sloth.IsSlow); sloth.Move(); sloth.SayFurColor(); Axolotl axolotl = new Axolotl(); Console.WriteLine(axolotl.IsCute); axolotl.Move(); axolotl.SayFurColor(); //axolotl.NumberOfLegs(4); }
public void AnimalTests() { // Animal animal = new Animal(); Sloth sloth = new Sloth(); Console.WriteLine(sloth.IsSlow); sloth.Move(); sloth.HasFur = true; Console.WriteLine(sloth.HasFur); sloth.SayFurColor(); Frog frog = new Frog(); Console.WriteLine(frog.CanJump); Console.WriteLine(frog.HasFur); frog.frogColor = FrogColor.Green; Console.WriteLine(frog.frogColor); }