public static void count(Countable c, int maxCount)
        {
            for (int i = 0; i < maxCount; i++)
            {
                c.incrementCount();
                c.getCount();

                Console.WriteLine(c.getCountString());
            }
        }
Beispiel #2
0
        public static void count(Countable NumCount, int topNum)
        {
            for (int i = 0; i < topNum; i++)
            {
                NumCount.incementCount();
                NumCount.getCount();

                Console.WriteLine(NumCount.getCountString());
            }
        }