I want to declare a overloaded function that has 2 parameters like this:
bool operator==(const String &first, const String &second);
how to declare it in a class....please help me....
I want to declare a overloaded function that has 2 parameters like this:
bool operator==(const String &first, const String &second);
how to declare it in a class....please help me....
Do not declare it in a class, it should be a free function.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)