How to delete a Singleton

Add this to the MySingleton class in the previous post and add the ability to clear out a Singleton.
public static function kill():Void {
 inst=null;
}


Comments are closed.