设计模式之 适配器模式
class Adaptee { public: void specialRequest(void); }; class Target { public: virtual void request(void) = 0; }; class Adapter: public Target { public: virtual void request(void); private: Adaptee adapee; };
class Adaptee { public: void specialRequest(void); }; class Target { public: virtual void request(void) = 0; }; class Adapter: public Target { public: virtual void request(void); private: Adaptee adapee; };