Constructor-Destructor

Question 1

How constructor differ from destructor?

A
Constructors can be overloaded but destructors can’t be overloaded
B
Constructors can take arguments but destructor can’t
C
Constructors can be overloaded but destructors can’t be overloaded and Constructors can take arguments but destructor can’t
D
None of the given options
Question 1 Explanation: 
Constructors can be overloaded but destructors can’t be overloaded.
Destructors cant be overloaded because your code wouldn't have a clue about which destructor it needs to call when you destroy an object.
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