Example #1
0
        public void ViewAllAnimals()
        {
            Crocodile cr = new Crocodile();

            for (int i = 0; i < ListAnimal.Count; i++)
            {
                if (ListAnimal[i].GetType().Equals(cr.GetType()))
                {
                    ListAnimal[i].ToString();
                    cr.Move();
                    cr.Move1();
                }
            }
        }