摘要: 作用:1 保证类只实例化一次2 提供全局访问接口java实现/** * 单例模式 */public class Singleton { private static Singleton singleton = null;// private Singleton()... 阅读全文
posted @ 2014-02-16 16:25 00000000O 阅读(146) 评论(0) 推荐(0)