C++ Constructors Question:
Download Questions PDF

If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor?

A. Preprocessor
B. Compiler
C. Linker
D. main() function


Option B

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
It is a __________ error to pass arguments to a destructor.

A. logical
B. virtual
C. syntax
D. linker
A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.

A. default constructor
B. copy constructor
C. Both A and B
D. None of these