Constructors and Destructors - Programming

Q1:

Which of the following gets called when an object goes out of scope?

A constructor

B destructor

C main

D virtual function

ANS:B - destructor

No answer description is available. Let's discuss.