摘要:
意图:为其他对象提供一种代理以控制对这个对象的访问。class Subject{public: Subject() {} virtual ~Subject() {} virtual void Request() = 0;};class RealSubject: public Subject{public: RealSubject() {} ~RealSubject() {} void Request() { cout<<"RealSubject::Request()"<<endl; }};class Prox... 阅读全文