Constructor-Destructor

Question 1
Which of the following is true of constructor function in C++ ?
A
A class must have at least one constructor.
B
A constructor is a unique function which cannot be overloaded.
C
A constructor function must be invoked with the object name.
D
A constructor function is automatically invoked when an object is created.
Question 1 Explanation: 
FALSE: A class must have at least one constructor.
FALSE: A constructor is a unique function which cannot be overloaded.
FALSE: A constructor function must be invoked with the object name.
TRUE: A constructor function is automatically invoked when an object is created.
There is 1 question to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access