A special member function of a class, which is invoked automatically whenever an object goes out of the scope is called

A special member function of a class, which is invoked automatically whenever an object goes out of the scope is called Correct Answer Destructor

Destructor is a special member function of a class, which is invoked automatically whenever an object goes out of the scope. It has the same name as its class with a tilde character prefixed.

Related Questions

Which function is called whenever an object goes out of scope?