예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("We're countin' gators 'n clonin' sheep!");

            Alligator gator = new Alligator(0);

            CountTestApp.GatorCount(gator);

            Sheep babe = new Sheep("Babe", 0);

            CountTestApp.SheepCount(babe);

            Console.WriteLine("Thanks for all your help! I feel real sleepy all of a sudden. . .");
            Console.ReadKey();
        }
예제 #2
0
 public static void GatorCount(Alligator gator)
 {//takes an input alligator and counts to 3
     Console.WriteLine("Counting alligators. . .");
     CountUtil.Count(gator, Counter());
 }