
设计模式
火烧尾
青春已逝,科比逝去------ 一切都在变化,唯有你 coding...
展开
-
适配器模式l
适配器模式:将一个类的接口转换为客户转载 2014-08-31 06:29:55 · 444 阅读 · 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 · 492 阅读 · 0 评论 -
单例模式
class FactoryA : Factory { }原创 2014-08-31 05:44:58 · 358 阅读 · 0 评论 -
策略模式
策略模式可以根据用户需要更新转载 2014-08-31 06:09:26 · 460 阅读 · 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 · 677 阅读 · 0 评论