Write a class Point with private x and y, a normal constructor, a copy constructor Point(Point other) (it should call the first constructor with this(…)), move(dx, dy), equals(Point) and toString() → (3, 4).
In PointCopy.main, read x y dx dy and run exactly this experiment:
Point p = new Point(x, y);
Point alias = p;
Point copy = new Point(p);
alias.move(dx, dy);
Print p, alias, copy, then p == alias, p == copy, p.equals(copy); then move copy by the same amount and print p == copy and p.equals(copy) again. Predict every line before you run it.