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.

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.

Computer Science & Information Technology

You might also like to view...

In the figure above, click number 2 to ____________________ the group.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Nearly every Web browser today uses _______________ for HTTPS-secured Web sites.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology