S
sarathy
Hi,
I have few doubts in operator overloading. Overloading is fine
for operators such as +, * , - , / .......
But why would anyone overload operators [ ] ( ) -> I dont see any real
use when these are overloaded. Particularly the ( ) operator.
What ( ) achieves can be acheived by normal functions and constructors
itself. Then why an overload ?
Please do clarify,
Sarathy
I have few doubts in operator overloading. Overloading is fine
for operators such as +, * , - , / .......
But why would anyone overload operators [ ] ( ) -> I dont see any real
use when these are overloaded. Particularly the ( ) operator.
What ( ) achieves can be acheived by normal functions and constructors
itself. Then why an overload ?
Please do clarify,
Sarathy