HI.,
Operator Overloading:
The Operator overloading is the ability to tell the compiler how to perform the certain operation when its corresponding operator is used on one or more variables.
For Example:
- Using the substraction operator"-" the compiler acts differently depending upon how the operator is being used.
- When it placed the left of the numeric value that is -5 the compiler consider it as the negative value.
- When used between the two integer value that is 101-99 the compiler applies the substraction operation
- When used the integer and the floating value that is 110-9.5 the compilersubstracts the left no from the right no.
Thanks,
Lavanya.J