Oct 3, 2010 at 3:59am
1)Who invokes the Destructor of a Singleton Class?
2) How an object of a Singleton Class gets destroyed ?
Oct 3, 2010 at 4:13am
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.