public class PointMain {
  public static void main(String args[]) {
    Point p = new Point(10,20);

    System.out.println("before: " + p);
    
    /* still can't do this */
    // p.x += 5;
    // p.y += 5;

    /* but we can do */
    p.setX(15);
    p.setY(p.getY()+5);

    System.out.println("after: " + p);
  }
}
