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

(A) obj2 will be passed as an argument to + operator whereas obj2 will drive the + operator
(B) obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator
(C) Both objects (obj1, obj2) will be passed as arguments to the + operator
(D) Any of the objects (obj1, obj2) can drive the + operator

»Important Links:

Latest Jobs in PakistanGovt Jobs in PakistanPrivate Jobs in Pakistan
NTS JobsPPSC JobsFPSC Jobs
Teaching JobsNADRA JobsBank Jobs
English McqsGeneral Knowledge McqsPak Studies Mcqs
Current Affairs McqsCurrent Affairs Mcqs PDFCurrent Affairs of Pakistan
Books PDFNotes PDFIslamic Studies Mcqs

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!