摘要: 模式释义 Ensure a class only has one instance, and provide a global point of access to. 保证一个类仅有一个实例,并提供一个访问它的全局访问点。 模式要点 1. 一个类只有一个实例; 2. 必须自行创建实例; 3. 自行向整个系统提供实例 模式实现要点 1. 单例模式的类只提供私有的构造函数; 2. 类... 阅读全文
posted @ 2013-07-21 13:13 笨笨的小蜗牛 阅读(158) 评论(0) 推荐(0) 编辑