摘要: 有关设计模式一.单例设计模式1.饱汉模式public class Singleton { public static Singleton instance=new Singleton(); private Singleton(){}; //构造函数私有化,为了阻止其他实例化对象 public st... 阅读全文
posted @ 2014-10-24 21:19 夜雨星辰- 阅读(303) 评论(0) 推荐(0)