← Quiz: Operators and Templates: all 10 questions
Quiz: Operators and Templates · Question 7 of 10
For a member operator+, what does the expression a + b become?
For a member operator+, what does the expression a + b become?
- A.operator+(b, a)
- B.a.operator+(b)
- C.b.operator+(a)
- D.a = a + b
Answer & explanation
Correct answer: a.operator+(b)
The left operand is the object the member function is called on; the right operand is the argument.
Can you get the rest right without peeking?
Take the timed Quiz: Operators and Templates quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →