If left operand member is specified directly in the function definition, which is the correct implicit conversion of that syntax?

If left operand member is specified directly in the function definition, which is the correct implicit conversion of that syntax?
A. *this className
B. *this parameterObject
C. *this returnedObject
D. *this object
 
Answer: d
Explanation: Since the left operands are passed implicitly, those object members can be accessed directly in the function definition. The compiler converts the syntax into the syntax that can be processed. The implicitly converted syntax contains *this pointer followed by the objectName that is left operand in the expression.
 

Tìm kiếm

Back
Top