|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
在看英文资料时,经常碰到这个词,但不清楚。
A proxy is a way of representing the class type as another object. You can't pass types around dynamically like you can pass a handle to an object. Think of the proxy class handle as an encoded value that represent a type you want to construct.The factory uses another kind of abstract class, known as a proxy class, which has a virtual method that returns a handle to an object of the class type you want. For each class we want to create with the factory, we need to extend the proxy class and implement a create object method that constructs an object of the requested type. We then construct the extended object proxy class and get a handle to a proxy object that can be used to construct the requested object.
这是自己谷歌到的一些,自己去读还是不很懂,使用翻译软件后更是觉得难懂。
有没有好心人能简单说一下。 |
|