Example #1
0
        public void AnimalTest()
        {
            //Animal animal = new Animal();
            Sloth sloth = new Sloth();

            Console.WriteLine(sloth.IsSlow);
            sloth.Move();
            sloth.SayFurColor();
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }