做事做精
摘要: 单例模式是一种比较简单的模式,其定义是ensure a class has only one intance ,and provide a global point of access to it .(确保某一个类只有一个实例,并自行实例化,并向整个系统提供这个实例)主要分为2种模式,饿汉式和懒汉式... 阅读全文
posted @ 2015-10-11 23:46 王啸shawn 阅读(113) 评论(0) 推荐(0) 编辑