Example #1
0
        static void Main(string[] args)
        {
            List <Animal> animals = new List <Animal>();

            animals.Add(new Animal("wnddy", 7, "cat"));
            animals.Add(new Animal("sandy", 5, "dog"));



            Animal a = new Animal("nancy", 10, "frog");
            Animal b = new Animal("john", 6, "bear")
            {
            };


            a.Display();
            b.Display();

            Console.ReadKey();
        }