Multiple choice technology programming languages

An operator overloading member function requires no arguments for a unary operator

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

An overloaded operator as a non-static member function of a class implicitly receives the this pointer as its first argument. Therefore, a unary operator requires no explicit arguments when overloaded as a member function.