Esempio n. 1
0
        public static void DisplayCount(Sheep sheep)
        {
            CountUtil.Count(sheep, 2);
            Console.Write("\n");
            sheep.ResetCount();
            Sheep cloneSheep = (Sheep)sheep.Clone();
            int   count      = Validator.ValidateInt("We will now clone the sheep! How many clones do you want to make: ");

            Console.Write("We've cloned the sheep! Pick a new name: ");
            string name = Console.ReadLine();

            Console.Write("\n");
            cloneSheep.Name = name;
            CountUtil.Count(cloneSheep, count);
            Console.Write("\n");
            CountUtil.Count(sheep, 1);
        }
Esempio n. 2
0
 public static void DisplayCount(Alligator alligator)
 {
     CountUtil.Count(alligator, 3);
 }