package counter;

public class CounterTest {
  public static void main(String[] args) {
    Counter c1 = new Counter();
    Counter c2 = new Counter();
    System.out.println("c1 = " + c1);
    System.out.println("c2 = " + c2);
    c1.increment();
    c2.decrement();
    System.out.println("c1 = " + c1);
    System.out.println("c2 = " + c2);
    c1.reset();
    System.out.println("c1 = " + c1);
    testNewMethods(c1, c2);
  }

  static void testNewMethods(Counter c1, Counter c2) {
    c2.reset(13);
    System.out.println("c2 = " + c2);
    c1.increment(7);
    c1.increment(4);
    c2.decrement(5);
    System.out.println("c1 = " + c1);
    System.out.println("c2 = " + c2);
    Counter c3 = new Counter(33);
    Counter c4 = c3;
    System.out.println("c3 = " + c3);
    c3.increment(c1.getCount());
    System.out.println("c1 = " + c1);
    System.out.println("c3 = " + c3);
     System.out.println("c4 = " + c4);
  }
}



