Operator (computer programming): Difference between revisions

Content deleted Content added
Operator overloading: Edit to form a coherent paragraph
Operator overloading: Remove info from overloading section that is not about overloading ... and seems low value
Line 64:
 
Conceptually, an operator can be [[Function overloading|overloaded]] in the same way that a function can {{endash}} acting differently based on the type of input. Some languages provide operators that are inherently overloaded (aka ''ad hoc polymorphic''). For example, in [[Java (programming language)|Java]] the {{code|+}} operator sums [[number]]s or [[concatenate]]s [[String (computer science)|strings]]. Some languages support user-defined operator overloading (such as [[C++]]).
 
In the example {{code|IF ORDER_DATE > "12/31/2011" AND ORDER_DATE < "01/01/2013" THEN CONTINUE ELSE STOP|basic}}, the operators are: {{code|>}} (greater than), {{code|AND}} and {{code|<}} (less than).
 
== Operand coercion ==