public static void count(Countable c, int maxCount) { for (int i = 0; i < maxCount; i++) { c.incrementCount(); Console.WriteLine(c.getCountString() + " " + c.GetType().ToString().Split('.')[1]); } }
public static void count(Countable c, int maxCount) { for (int i = 0; i < maxCount; i++) { c.incrementCount(); c.getCount(); Console.WriteLine(c.getCountString()); } }
public static void count(Countable NumCount, int topNum) { for (int i = 0; i < topNum; i++) { NumCount.incementCount(); NumCount.getCount(); Console.WriteLine(NumCount.getCountString()); } }