Like Function Overloading C++ also support the Powerful concept of Operator overloading.Few operators in C++ such as +,-,++,>,<,<== etc. works on Build in Data types i.e primitive data types such as (int,char,float) that means we can directly add two integers numbers or two float numbers .
Here addition operation is performed on two operands a and b of integer data type .But what if i wants to add two user defined variables. In order to add or compare or to perform any operation on user defined data type , the concept of OPERATOR OVERLOADING is used. When two basic type operands are added operator overloading takes place but it takes place implicitly.But in-order to perform any operation on user defined datatypes operator overloading is done Explicitly.
Read moreOperator Overloading in C++