Bookcold

导航

设计模式—单例(Singleton)模式

一、单例模式

The purpose of the Singleton pattern is to ensure that there is only one instance of a class, and that there is a global access point to that object. The pattern ensures that the class is instantiated only once and that all requests are directed to that one and only object. Moreover, the [...]

posted on 2010-04-24 10:55  bookcold  阅读(112)  评论(0)    收藏  举报