Previously when we compared objects, we compared them attribute-by-attribute. That is because the meaning of == on objects is less clear. As we show in this video, that is because equality (and the other comparison operators) are yet another operator that we need to overload.
- Tags
-