If overloaded plus operator is implemented as member function-03121
If overloaded plus operator is implemented as member function then which of the following option will be true for the statement given below?<br>obj3 = obj1 + obj2 ;
This multiple choice question (MCQ) is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Mid Term - Quiz No.3.
If overloaded plus operator is implemented as member function then which of the following option will be true for the statement given below?
obj3 = obj1 + obj2 ;
obj3 = obj1 + obj2 ;
obj1 will be passed as an argument to + operator whereas obj2 will drive the + operator
obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator
Both objects (obj1, obj2) will be passed as arguments to the + operator
Any of the objects (obj1, obj2) can drive the + operator