Example #1
0
        static void Main()
        {
            Alligator alligator = new Alligator();
            Sheep     sheep     = new Sheep();

            Console.WriteLine("Counting Alligators...\n");
            CountTestApp.DisplayCount(alligator);
            Console.Write("\n");
            Console.WriteLine("Counting Sheep...\n");
            CountTestApp.DisplayCount(sheep);
            Console.ReadKey();
        }
Example #2
0
 public static void DisplayCount(Alligator alligator)
 {
     CountUtil.Count(alligator, 3);
 }