1.

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 pointerI have been asked this question in exam.Question is from Member Operator Function in chapter Member Functions & its Types of Object Oriented Programming

Answer» RIGHT choice is (c) Because it becomes parameter pointed by *this

The best I can explain: 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.


Discussion

No Comment Found

Related InterviewSolutions