Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
Constructors and Destructors
Which of the following gets called when an object goes out of scope?
constructor
destructor
main
virtual function
Correct Answer:
destructor
← Previous Question
Next Question→
More Questions from
Constructors and Destructors
Which of the following cannot be declared as virtual?
Which of the following are NOT provided by the compiler by default?
Destructor has the same name as the constructor and it is preceded by ______ .
If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor?
When are the Global objects destroyed?
Which of the following statement is correct?
Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?
Which of the following never requires any arguments?
How many times a constructor is called in the life-time of an object?
Which of the following statement is correct whenever an object goes out of scope?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments