C++ Constructors Question:

Which of the following cannot be declared as virtual?

A. Constructor
B. Destructor
C. Data Members
D. Both A and C

C++ Constructors Interview Question
C++ Constructors Interview Question

Answer:

Option D
Both A and C


Previous QuestionNext Question
Which of the following are NOT provided by the compiler by default?

A. Zero-argument Constructor
B. Destructor
C. Copy Constructor
D. Copy Destructor
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().