When the operator to be overloaded becomes the left operand member then ______________

When the operator to be overloaded becomes the left operand member then ______________
A. The right operand acts as implicit object represented by *this
B. The left operand acts as implicit object represented by *this
C. Either right or left operand acts as implicit object represented by *this
D. *this pointer is not applicable in that member function
 
Answer: b
Explanation: The left operand becomes the object that is referred by *this pointer in the member function that will be called while using operator overloading. This is done to point to a specific object on which the overloading will be applied.
 

Tìm kiếm

Back
Top