Destructor of Singleton Class


1)Who invokes the Destructor of a Singleton Class?
2) How an object of a Singleton Class gets destroyed ?
1) As with any class, the destructor is called when the object is destroyed.

2) If it's static/global, it will happen at program shutdown. If it's allocated with new, it will happen when deleted.
Topic archived. No new replies allowed.