Design Patterns 9: Decorator

動態加載、拓展功能 struct Component { virtual void Operation() = 0; }; struct ConcreteComponent : Component { void Operation() override {} }; struct Decorator : Component { Decorator(Component* c
相關文章
相關標籤/搜索