Solved

Y and Z Are User-Defined Objects and the += Operator

Question 1

Multiple Choice

Y and z are user-defined objects and the += operator is an overloaded member function. The operator is overloaded such that y += z adds z and y, then stores the result in y. Which of the following expressions is always equivalent to y += z?


A) y = y operator+= z
B) y.operator+=(z)
C) y = y + z
D) y operator+=(y + z)

Correct Answer:

verifed

Verified

Related Questions