
/**
 * This goes with the book
 *

 */
public class demo{

    /**
     * 
     */
    public void test(){
        Foo a = new Foo();
        Foo b = new Foo();
        a.x = 12;
        a.y = 7;
        b.x = a.x;
        b.y = 14;
        int total = b.getSum();
        System.out.println(total);
        a.x = 0;
        System.out.println(a.getSum());
        System.out.println(b.getSum());
        
        
    }
}
