Answer :
Answer and Explanation
A destructor, for an object is called whenever the object's lifetime ends. If the object was created as an automatic variable, its lifetime ends and the destructor is called automatically when the object goes out of scope.
Hope this helps. :)