C++ Constructors Question:
Download Questions PDF

Destructor has the same name as the constructor and it is preceded by ______ .

A. !
B. ?
C. ~
D. $

Answer:

Option C
( ~ )

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
Can a class have virtual destructor?

A. Yes
B. No
For automatic objects, constructors and destructors are called each time the objects

A. enter and leave scope
B. inherit parent class
C. are constructed
D. are destroyed