Checks whether two rectangles are equal.
The result is true if and only if the argument is not
null and is a Rectangle object that has the
same upper-left corner, width, and height as
this Rectangle.
obj | the Object to compare with
this Rectangle |
true if the objects are equal;
false otherwise.
Diagram: Rectangular Shapes