Home Segments Top Top Previous Next

121: Mainline

The + operator, which normally means add, has an entirely different meaning when one of the operands is a string. In such situations, the + operator converts the other operand into a string, if that operand is not already a string, and concatenates the two strings, producing a third string.

Because + has two fundamentally different meanings, + is said to be an overloaded operator.