Operator Overloading « Class Interface « C# / C Sharp






1.An example of operator overloadingAn example of operator overloading
2.More operator overloadingMore operator overloading
3.Overload addition for object + object, and for object + intOverload addition for object + object, and 
   for object + int
4.Overload the + for object + object, object + int, and int + objectOverload the + for object + object, 
   object + int, and int + object
5.Overload shift operatorOverload shift operator
6.Overload true and fase for ThreeDOverload true and fase for ThreeD
7.A better way to overload !, | and & for ThreeD. This version automatically enables the && and || operatorsA better way to overload !, | and & for ThreeD. 
   This version automatically enables the && and || operators
8.illustrates operator overloadingillustrates operator overloading
9.Demonstrates overloading the addition operator for two class objectsDemonstrates overloading the addition operator for two class objects








10.overloaded operator + takes two fractionsoverloaded operator + takes two fractions
11.Overloaded operator: whether two Fractions are equalOverloaded operator: whether two Fractions are equal
12.Overload != operatorOverload != operator
13.Operator Overloading:An ExampleOperator Overloading:An Example
14.Sorting and Searching:Overloading Relational OperatorsSorting and Searching:Overloading Relational Operators