Complete Point by overriding equals so that two points with the same coordinates count as equal.
The parameter type must be Object — that is the signature being overridden. Check the type first, then compare.
The program prints false (different objects), true (same contents), false (not a Point at all).