Question: what is difference between unary and binary operators and how they can be overloaded?
Answer: Difference between overloading Unary and Binary Operators in C++ ... Unary operators can be overloaded as ordinary functions that take a single argument of class or reference to class type. Binary operators can be overloaded as ordinary functions that take one or both arguments of class or reference to class type.