Tag: Friend
Unary Operator Overloading in C++ using both member & Friend function
In this article we will discuss how to overload unary operators in c++ using both member and Friend function. What is an unary operator? An Unary operator is an operator that operates on a single operand and returns a new value. Advertisements Some of the unary operators are, ++ (Increment Operator) —   (Decrement operator) –    (Unary …
Unary Operator Overloading in C++ using both member & Friend functionRead More