/* Counter.java ** An instance of this very simple class represents a counter. */ public class Counter { // instance variable // ----------------- private int count; // observer // -------- /* Returns the current count value as in integer. */ public int countVal() { return count; } // mutator // ------- /* Increments the count value. */ public void increment() { count++; } }