摘要:
有关设计模式一.单例设计模式1.饱汉模式public class Singleton { public static Singleton instance=new Singleton(); private Singleton(){}; //构造函数私有化,为了阻止其他实例化对象 public st... 阅读全文
摘要:
有关设计模式一.单例设计模式1.饱汉模式public class Singleton { public static Singleton instance=null; private Singleton(){}; //构造函数私有化,为了阻止其他实例化对象 public static Singl... 阅读全文