Posts Tagged: overloading in c++

Program of Overloading (-) minus unary operator in C++.

Overloading : Overloading an operator simply means attaching additional meaning and semantics to an operator.In case of unary operator overloaded using a member function no argument is passed to the function whereas in case of friend function a single argument must be passed.