Only when the inherited Point.Equals method returns true does the method compare the z instance fields introduced in the derived class. The following example defines a Rectangle class that internally implements a rectangle as two Point objects.