public class PointMainCopyWorking {
  public static void main(String args[]) {
    Point p1 = new Point(10,20);
    Point p2;  // What's in p2?
               // How many Points do we have?

    // p2 = p1;  // same questions:
                 // What's in p2?
                 // How many Points do we have?

    /* use the new operator to create another */
    p2 = new Point(p1.getX(), p1.getY());
    
    System.out.println("p1 = " + p1);
    System.out.println("p2 = " + p2);

    p1.move(1,1);

    System.out.println("p1 = " + p1);
    System.out.println("p2 = " + p2);
  }
}
