|
|||||
|
Operator overloading permits user-defined operator implementations to be specified for operations where one or both of the operands are of a user-defined class or struct type. Operator overloading makes a program clearer than accomplishing the same operations with explicit method calls. However, it is not possible to overload all operators in C#. In C#, a special function called operator function is used for overloading purpose. These special function or method must be public and static. They can take only value arguments.
|