C++ Constructors Question:
Download Questions PDF

Which of the following statement is correct about destructors?

A. A destructor has void return type.
B. A destructor has integer return type.
C. A destructor has no return type.
D. A destructors return type is always same as that of main().

Answer:

Option C
A destructor has no return type.

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following cannot be declared as virtual?

A. Constructor
B. Destructor
C. Data Members
D. Both A and C
How many default constructors per class are possible?

A. Only one
B. Two
C. Three
D. Unlimited