If overloaded plus operator is implemented as non-member-02651
If overloaded plus operator is implemented as non-member function then which of the following statement 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 Final Term - Quiz No.13.
If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below?
obj3 = obj1 + obj2 ;
obj3 = obj1 + obj2 ;
obj2 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 argumentto + operator
Both objects (obj1, obj2) will be passed as arguments to the + operator
Any of the objects (obj1, obj2) can drive the + operator