/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package objectexample; /** * * @author kvaradar */ public class Counter { protected int count; Counter() { count = 0;} public int getCount() {return count;} public void incrementCount() {count++;} public void decrementCount() {count--;} }