Operator Overloading
Without changing the functionality of operators,
we can overload (extend) operators.
for instance, By Overloading + Operator ,
we can add two Strings or struct type variables.
This is done by defining operator function.
Syntax:
operator ()
example:
int operator + (1,2)
Limitations:
a. We can overload some set of operators only.
That is, Some exceptional are there(eg. :: operator).
b. We shouldn’t use operator overloading for unobvious relationships
(eg. multiplication of two string ).
