1.

All the operators can be overloaded using the member function operator overloading.(a) True(b) FalseThis question was addressed to me in quiz.Enquiry is from Member Operator Function topic in portion Member Functions & its Types of Object Oriented Programming

Answer»

Right answer is (B) False

Explanation: It is not the case that all the operators can be overloaded using the MEMBER operator overloading. There are some CASES where the operators must be overloaded using the FRIEND function only. The REASON behind is that the left operand should be passed *this pointer, but the left operand in these cases might be object of some other class. Hence can’t be done.



Discussion

No Comment Found

Related InterviewSolutions