pls pls pls solve this

@unagie (122)
India
July 11, 2009 9:56am CST
identify the problem within this snippet of java/c# code implementing singleton design pattern. (this is not a trick question) class Singleton{ public static Singleton Instance(){ if(_instance == null) _instance=new Singleton(); return _instance; } protected Singleton(){} private static Singleton_instance =null; } whoever solves dis will get a best answer from my side.. plz help
1 response
• Philippines
13 Jul 09
Hey there! It seems _instance is not declared anywhere. You have an instance of Singleton_instance but no _instance.