Which is best practice (in this case):
bool Foo::operator==(const Foo& other) { return bar == other.bar; } // Implementation 1 bool Foo::operator!=(co
Implementation 2 is better because it makes use of the already defined operator==. Also those operator functions should be const because they don't modify the object.
const