C++ Constructors Question:
Download Questions PDF

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


Option A
enter and leave scope

Download C++ Constructors Interview Questions And Answers PDF

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

A. !
B. ?
C. ~
D. $
A class's __________ is called when an object is destroyed.

A. constructor
B. destructor
C. assignment function
D. copy constructor