Checking Equality
l
Defining
equals()
is at
programmerŐs discretion
l
By analogy with copying:
l
Equality checking can be deep or shallow.
l
Semantic
equality may be taken into
account:
l
e.g. allowing an integer value to be
equal
to a floating value.