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?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Operator Overloading
|
Click Here to Expand Forum to Full Width |