Suppose obj1 and obj2 are two objects of a user defined class A-04120
Suppose obj1 and obj2 are two objects of a user defined class A. An + operator is overloaded to add obj1 and obj2 using the function call obj1+obj2.<br>Identify the correct function prototype against the given call?
This multiple choice question (MCQ) is related to the book/course vu cs304 Object Oriented Programming. It can also be found in vu cs304 Mid Term - Quiz No.3.
Suppose obj1 and obj2 are two objects of a user defined class A. An + operator is overloaded to add obj1 and obj2 using the function call obj1+obj2.
Identify the correct function prototype against the given call?
Identify the correct function prototype against the given call?
A operator + ( A &obj);
int + operator();
int operator (plus) ();
A operator(A &obj3);