C++ implementation
class String {
public:
String& operator+=(const String&);
// ...
};
String operator+
(const String& s1, const String& s2)
{
String result = s1;
result += s2;
return result;
}
Previous slide
Next slide
Back to first slide
View graphic version