Unary Operator « Overload « C++






1.Overload a unary operator.Overload a unary operator.
2.Use a member function to overload the unary -.