1.

In case of non-static member functions how many maximum object arguments a binary operator overloaded function can take?(a) 1(b) 2(c) 3(d) 0I have been asked this question in final exam.My doubt is from Operator Overloading in portion Source Files, Classes and Operator Overloading in C++ of C++

Answer»

The CORRECT answer is (a) 1

Explanation: In the case of non-static member functions binary operator OVERLOADED function should TAKE MAXIMUM ONE object argument only.



Discussion

No Comment Found

Related InterviewSolutions