What is benefit of using Operator overloading in C, C++, c#?
What is benefit of using Operator overloading in C, C++, c#?
Operator Overloading is for using the single operator for multiple operations.
c# is the language based on oops methodology & this methodology is designed to save the resource used, time and minimise the errors. Operator overloading is one of the method fulfiling this purpose of oops.
The main benefit of an operator overloading is extensiblity. An operator will act differently according to the given operands.
it is maily to reuse same objects.