![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
火烧尾
青春已逝,科比逝去------ 一切都在变化,唯有你 coding...
展开
-
适配器模式l
适配器模式:将一个类的接口转换为客户转载 2014-08-31 06:29:55 · 422 阅读 · 0 评论 -
设计模式之工厂模式
class product{public: virtual void show() = 0;}class productA: public product{public: void show(){ cout << "productA" << std::endl;}}class productB : public product{public: voi原创 2014-08-31 05:34:09 · 469 阅读 · 0 评论 -
单例模式
class FactoryA : Factory{}原创 2014-08-31 05:44:58 · 333 阅读 · 0 评论 -
策略模式
策略模式可以根据用户需要更新转载 2014-08-31 06:09:26 · 439 阅读 · 0 评论 -
设计模式 (python) ---> Singleton
代码:class Singleton(object): _inst = None def new(cls): if cls._inst is None: inst = object.new(cls)原创 2015-04-29 10:27:36 · 656 阅读 · 0 评论