PPT Slide
Equality with References to Objects:
Two different logical tests available:
1. The operator = = (equality)
- It evaluates whether two references point to the same object.
- It evaluates whether the internal state
(i.e., contents) of one object is identical
to the internal state of another object.
- It is a special method built-in to the
class Object, and is available to all
classes you create. In practice you
will want to code a version of equals()
in your classes, so that you can