Why the left parameter is removed from parameter list?

Tam ca

New member
Why the left parameter is removed from parameter list?
A. Because it is of no use
B. Because it is never used in definitions
C. Because it becomes parameter pointed by *this
D. Because it can’t be referred by *this pointer
 
Answer: c
Explanation: The left object is removed from being passed as a parameter, because it is implicitly passed. It is passed implicitly because it is considered the object with respect to which the overloading function is being called.
 

Tìm kiếm

Back
Top