If the left operand is pointed by *this pointer, what happens to other operands?

If the left operand is pointed by *this pointer, what happens to other operands?
A. Other operands are passed as function return type
B. Other operands are passed to compiler implicitly
C. Other operands must be passed using another member function
D. Other operands are passed as function arguments
 
Answer: d
Explanation: The operands that are used during overloading expect the left operand, can be passed as function arguments. Those are then referred in function definition with the names specified in the argument list.
 

Tìm kiếm

Back
Top