摘要:
意图:将抽象部分与它的实现部分分离,使它们都可以独立地变化。class Abstraction{public: Abstraction() {} virtual ~Abstraction() {} virtual void Operation() = 0;};class Implementor{public: Implementor() {} virtual ~Implementor() {} virtual void OperationImp() = 0;};class RefinedAbstraction: public Abst... 阅读全文