Example #1
0
        static void Main(string[] args)
        {
            Reptile DragonLizard = new Reptile(14.0, 72.6, "Herman", "Spain", true);
            Mammal  Bear         = new Mammal(96.4, 480.2, "Smoky", "Montana", true);

            DragonLizard.GetInfo();
            Bear.GetInfo();

            Console.WriteLine(DragonLizard.Sum());
            Console.WriteLine(Bear.Sum());

            Console.WriteLine(DragonLizard.GetWeight(50));
            Console.WriteLine(Bear.GetWeight(100));
        }
Example #2
0
        static void Main(string[] args)
        {
            Reptile dragonLizard = new Reptile(140, 226, "Herman", "Spain", true);

            Mammal bear = new Mammal(96.4, 480, "Smoky", "Montana", true);

            Console.WriteLine(bear.Sum());

            dragonLizard.GetInfo();

            Mammal wildCat = new Mammal(74, 193, "Willy", "Kansas State", true);

            wildCat.GetInfo();

            Console.WriteLine();

            Console.WriteLine(dragonLizard.GetWeight(0));

            Console.WriteLine(bear.GetWeight(100));
        }