摘要:
单例模式(Singleton) 设计模式使用的例子https://github.com/LinkinStars/DesignPatternsAllExample 一、定义 确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例,这个类称为单例类,它提供全局访问的方法。单例模式是一种对象创建 阅读全文
posted @ 2017-10-18 15:33
LinkinStar
阅读(389)
评论(0)
推荐(0)