Overloaded operators: Difference between revisions

Content added Content deleted
mNo edit summary
(Converted to draft task.)
Line 1: Line 1:
{{draft task}}

An [https://en.wikipedia.org/wiki/Operator_overloading overloaded operator] can be used on more than one data type, or represents a different action depending on the context. For example, if your language lets you use "+" for adding numbers and concatenating strings, then one would say that the "+" operator is overloaded.
An [https://en.wikipedia.org/wiki/Operator_overloading overloaded operator] can be used on more than one data type, or represents a different action depending on the context. For example, if your language lets you use "+" for adding numbers and concatenating strings, then one would say that the "+" operator is overloaded.