Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Mammal Somali = new Lion("Simba", 4);

            Mammal Bengal = new Tiger("Ryker", 4);


            Reptile Rinkhals = new Cobra("Kenin", 0);

            Reptile Conopolous = new Iguana("Iggy", 4);


            Amphibian Natterjack = new Toad("Grogi", 4);

            Amphibian Xenopus = new Frog("Sophi", 4);


            Fish Redeye = new Piranha("Mooey", 0);

            Fish Conger = new Eel("Ciz", 0);


            Bird Dalmatian = new Pelican("Dorky", 2);

            Bird Rufous = new Hummingbird("Tweeky", 2);



            List <object> animal_Name = new List <object>
            {
                Somali.IPrintAnimalName(),

                          Bengal.IPrintAnimalName(),

                          Rinkhals.IPrintAnimalName(),

                          Conopolous.IPrintAnimalName(),

                          Natterjack.IPrintAnimalName(),

                          Xenopus.IPrintAnimalName(),

                          Redeye.IPrintAnimalName(),

                          Conger.IPrintAnimalName(),

                          Dalmatian.IPrintAnimalName(),

                          Rufous.IPrintAnimalName()
            };


            for (int i = 0; i < animal_Name.Count; i++)
            {
                Console.WriteLine(animal_Name[i]);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Snake snake = new Snake();

            snake.GetClass();
            snake.GetType();
            snake.snek();

            Console.WriteLine("-->");

            Axolotl axolotl = new Axolotl();

            axolotl.immortal();

            Console.WriteLine("");
            Console.WriteLine("----------------------------------------------------------------------------------------");
            Console.WriteLine("");

            Mammoth mammoth = new Mammoth();

            mammoth.GetClass();
            mammoth.GetType();
            mammoth.mammothstuff();

            Console.WriteLine("-->");

            Bear bear = new Bear();

            bear.bearstash();

            Console.WriteLine("");
            Console.WriteLine("----------------------------------------------------------------------------------------");
            Console.WriteLine("");

            Crow crow = new Crow();

            crow.GetClass();
            crow.GetType();
            crow.crowsnest();

            Console.WriteLine("-->");

            Sparrow dove = new Sparrow();

            dove.Pokeball();


            Console.WriteLine("");
            Console.WriteLine("----------------------------------------------------------------------------------------");
            Console.WriteLine("");

            Carpy goldfish = new Carpy();

            goldfish.GetClass();
            goldfish.GetType();
            goldfish.Kphish();

            Console.WriteLine("-->");

            Carp carp = new Carp();

            carp.GetClass();
            carp.GetType();
            carp.carpinfo();

            Console.WriteLine("");
            Console.WriteLine("----------------------------------------------------------------------------------------");
            Console.WriteLine("");

            KD kd = new KD();

            kd.GetClass();
            kd.GetType();
            kd.Dlair();

            Console.WriteLine("");

            Iguana iguana = new Iguana();

            iguana.iggy();
        }
Exemplo n.º 3
0
        public void iggy()
        {
            Iguana iggy = new Iguana();

            iggy.Ig();
        }