摘要:
意图:动态地给一个对象添加一些额外的职责。class Component{public: Component() {} virtual ~Component() {} virtual void Operation() = 0;};class ConcreteComponent: public Component{public: ConcreteComponent() {} ~ConcreteComponent() {} void Operation() { cout<<"ConcreteComponent::Ope... 阅读全文