55. Rewriting equals() via type patterns for instanceof It is not mandatory to rely on instanceof for implementing the equals() method, but it is a convenient approach to write something as follows: public class MyPoint { private final int x; private final int y; private final int z; public MyPoint(int x, int y, int z) […]