close-red

CS201 - Introduction to Programming

Question(s) similar to the following:

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 ;

Question 1: 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 ;

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

Similar Questions:

Question 2: 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 ;

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

Question 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 ;

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
Quizzes of CS201 - Introduction to Programming
Sponsored

Attach VULMS for better learning experience!
Attach VULMS Account

Our VULMS adds features of MDBs and lets your populate VU subjects automatically.

Tajweed Classes (Learn Quran with Tajweed)
Learn Holy Quran with Tajweed

Try our 3 days free demo now! Online online holy quran tajweed classes are useful to learn reading holy quran with tajweed.

Gegasoft POS/CRM Software
Gegasoft Point of Sale/Customer Relationship Managemnet Software

Gegasoft Point of Sale/Customer Relationship Management software is an accounting software to fulfill your business needs.

Sponsored

?