Reference types, Value types, and Patterns - slide 5 : 29 |
Do we compare references or the referenced objects?
Do we copy the reference or the referenced object?
How deep do we copy objects that reference other objects?
An assignment of the form var = obj1 copies a reference
A comparison of the form obj1 == obj2 compares references (unless overloaded)