|
| |
| | Reference.com/Encyclopedia/Operator overloading |
 | | Because operator overloading allows the programmer to change the usual semantics of an operator, it is usually considered good practice to use operator overloading with care. |  | | In computer programming, operator overloading (less commonly known as ad-hoc polymorphism) is a specific case of polymorphism in which some or all of operators like |  | | Because of this there is often confusion between operator overrides and operator overloads, and most developers blur any distinction and refer to both as operator overloads, which is semantically incorrect. |
|
http://www.reference.com/browse/wiki/Operator_overloading
(328 words)
|
|
| |
| | [No title] |
 | | An operator such as + may be overloaded by defining writing operator+ as a non-member function or as a member of a class. |  | | On the other hand, overloading operator+ as a non-member function may mean that writting the body may be difficult since the non-member version can't directly access the data members of the Money class. |  | | C++ classes, on the other hand, allow operations to be implemented as functions (member functions) which are allowed to make changes in an existing value of the class type. |
|
http://condor.depaul.edu/~glancast/262class/docs/lecJan16.html
(2779 words)
|
|
| |
| | [No title] |
 | | The function operator+ is neither a member of the object x nor a member of the object y. |  | | Operators can be overloaded either for objects of the user-defined types, or for a combination of objects of the user-defined type and objects of the built-in type. ¡ü + C 8 _ ï 8 _ “0 [ _ \ 8 _ ¨ 0 _ + B Ô A þ þ ÿþ þ þ² ªP ª & | | |