Ok. In these lessons there is one thing I couldn't understand. What's the point about operator overloaded and why are they useful?

operators overloaded


6/13/2016 6:06:16 AM

Andrei Cîrpici

2 Answers

New Answer


Example is:- If you want to add two vectors using "+" operator, like A+B, then you can use operator overloading to make functionality of adding two vectors using "+" operator.


Operator Overloading is done to use the operators directly to the objects instead of each and every variable ,data type. It is just like a function but a bit different.