The Gingham Dog The Gingham Dog
Here is a picture of this situation.
Even though both objects have equivalent data inside of them,
(strA
is false.
==
strB)
==
reports false because there
are two different objects, each with a unique reference.
Imagine that there are three reference variables:
itemA
,
itemB
,
itemC
.
And say that
itemA
==
itemB
and that
itemB
==
itemC
How many objects are there?