Get premium membership and access questions with answers, video lessons as well as revision papers.

How do friend operator function differ from member operator functions

      

How do friend operator function differ from member operator functions

  

Answers


Davis
A binary member operator function is passed the left operand implicitly via the ‘this’ pointer.A binary friend operator function is passed both operands explicitly.Unary member operator functions have no explicit parameters.A friend unary operator function has one parameter.
Githiari answered the question on November 17, 2017 at 05:46


Next: When is it appropriate to use default argument? When is it probably a bad idea
Previous: Explain why you might need to overload the assignment operator in a computer program

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions