The proxy should have a speak method with the same interface that the original target object has.
该代理应有一个speak方法,该方法与原始目标对象拥有相同的接口。
It basically holds the relationship between a source container unit (that has a member type of requirement for a specific type of object) and target member unit of that object type.
它主要维持一个源容器单元(它拥有目标特定类型requirement类型成员)和目标类型的目标成员单元之间的关系。
The target (which can be a class or object) looks to see if it has a method of the same name as the message.
该目标(可以是类或对象)查找是否有与此消息同名的方法。
应用推荐