Binary operator overloading
The follows given is the syntax of binary operator overloading
Function returntype : primitive, void, or userdefined
Returntype operator operator symbol (arg)
{
body of operator function
}
The binary overloaded operator function takes the first as an implicit operand and the second operand must be passed explicitly. These data members of the first object are accessed without using the dot operator while; the second argument members can be accessed using the dot operator if the argument is an object. Or else it could be accessed directly. Remember that, the overloaded binary operator function is a member function described in the first object's class.