C++ Constructors Question:
Download Questions PDF

Which of the following statement is correct?

A. Destructor destroys only integer data members of the object.
B. Destructor destroys only float data members of the object.
C. Destructor destroys only pointer data members of the object.
D. Destructor destroys the complete object.

Answer:

Option D
Destructor destroys the complete object.

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
How many default constructors per class are possible?

A. Only one
B. Two
C. Three
D. Unlimited
What is Virtual destructors?