Home »
MCQs »
C++ MCQs
When does a destructor gets called?
203. When does a destructor gets called?
- When an object gets created
- When an object gets destroyed
- After calling constructor
- None of the above
Answer: B) When an object gets destroyed
Explanation:
A destructor gets called when an object is getting destroyed.