建立型模式簡介

建立型模式簡介算法 1、單件模式,SINGLETON,對象建立模式ui 保證一個類只有一個實例,並提供一個訪問它的全局訪問點。this     class Singleton{設計 public:代理 static Singleton* Instance();對象 protected:blog Singleton();接口 private:原型 static Singleton* _instanc
相關文章
相關標籤/搜索