CS202 6- ‹#›
Overloading +, +=Operators
nIf the + operator is overloaded, we should also overload the += operator
nThe + operator can take either a string or a char * as the first or second operands, so we will overload it as a non-member friend and support the following:
ästring + char *,   char * + string,  string + string
nFor the += operator, the first operand must be a string object, so we will overload it as a member
nThe + operator results in a string as an rvalue temp
nThe += operator results in a string as an lvalue
nThe + operator doesn’t modify either operand, so string object should be passed as constant references