Content deleted Content added
m linking |
→Overloading: Attempt to use inline code for clarity |
||
Line 34:
* In the last case, [[literal string|string]] concatenation must be invoked.
Thus, the name <code>+</code> actually refers to three or four completely different functions. This is an example of ''overloading''.
(Note the ambiguity in the string types used in the last case. Consider <code>"123" + "456"</code> in which the programmer might ''naturally'' assume addition rather than concatenation. They may expect
==References==
|