C++ Constructors Question:
Download Questions PDF

A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.

A. constructor
B. destructor
C. function
D. object

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

Answer:

Option B
destructor

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following never requires any arguments?

A. Member function
B. Friend function
C. Default constructor
D. const function
A union that has no constructor can be initialized with another union of __________ type.

A. different
B. same
C. virtual
D. class