> The "*" represents multiplication
Maybe.
In the string example, "+" means add one string onto the end of another. It's a slightly different sense of the word "add" (and not a mathematical...
Type: Posts; User: Salem
> The "*" represents multiplication
Maybe.
In the string example, "+" means add one string onto the end of another. It's a slightly different sense of the word "add" (and not a mathematical...
Well not all operators make sense in all circumstances.
For example, a string class could overload "+" to be concatenate two strings, but "*" doesn't make any sense at all.
Likewise == would be...