/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objectexample;

/**
 *
 * @author kvaradar
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        Counter c1 = new Counter();
        c1.incrementCount();
        c1.incrementCount();
        System.out.println("c1.count is " + c1.getCount());
        Counter c2 = new Counter();
        c2.decrementCount();
        System.out.println("c2.count is " + c2.getCount());
        Counter c3 = c1;
        c1.incrementCount();
        System.out.println("c3.count is " + c3.getCount());
    }

}
