Question

Q3: An overloaded + operator takes a class object and a double as operands. For it to be commutative (i.e., a + b and b + a both work):
a. operator+ must be a member function of the class from which the objects are instantiated.
b. operator+ must be a non-member function.
c. It must be overloaded twice; the operator+ function that takes the object as the left operand must be a member function, and the other operator+ function must be a global function.
d. The + operator cannot be overloaded to be commutative.

Answer

This answer is hidden. It contains 152 characters.