It is polymorphism in which an operator is overloaded to give user defined meaning to it . Overloaded operator is used to perform operation on user-defined data type. For example ‘+’ operator can be overloaded to perform addition on various data types, like for Integer, String(concatenation) etc.
Read moreWhat is operator overloading and its types in C++?
Operator Overloading is the method by which we can change the function of some specific operators to do some different task . In the above syntax Return_Type is value type to be returned to another object, operator op is the function where the operator is a keyword and op is the operator to be overloaded.
Read moreHow do you overload the ++ operator in C++?
The postfix increment operator ++ can be overloaded for a class type by declaring a nonmember function operator operator++() with two arguments, the first having class type and the second having type int . Alternatively, you can declare a member function operator operator++() with one argument having type int .
Read more