Design Pattern-Singleton Pattern单例模式

There are many objects we only need one of: thread pools, caches, dialog boxes, objects that handle preferences and registry settings, objects used for logging, and objects that act as device drivers
相关文章
相关标签/搜索