If say I want to overload the following:
and my test case is:Code:String operator*(const String& str, int n);
do I need to write another function with a different parameter, or is there a way to just use one function definition and perform both operators?Code:String ab = ab0 * 3; String abc = 2 * (ab + String('c'));