I wish to test equality between between 2 instances of a class. In C++ I would overload the == operator. I know I can write a method such as Object1.is_the_same_as (Object2), but is there any way to achieve this using the equality operator?