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

    /* pain to have to type all this just to
     * print out the x and y coordinates */
    System.out.println("p.x=" + p.x + ", p.y=" + p.y);
	
    /* - println expects String ref
     * - it finds a Point ref
     * - calls Point's toString() */
    System.out.println(p.toString());
    System.out.println(p);
  }
}
