Consider the following two lines of code written for a class Student, 1. Student sobj1,sobj2; 2. sobj2 = sobj1; In line No.2 what constructor of Student class will be called?

(A) Default constructor of Student class
(B) Copy constructor of student class
(C) Both default and copy constructer of Student class
(D) No constructor will be called

»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 !!