实现了这个接口的类可以适配到另一接口。
Classes implementing this interface can be adapted to another interface.
基本的解决方案是定义可以用静态编译的代码访问的基类或者接口,然后生成的类扩展这个基类或者实现这个接口。
The basic solution is to define a base class or interface that can be accessed by the statically compiled code, then extend that base class or implement that interface in the generated class.
定义一个关系,指明那两个新建的类是这个接口的实现。
Define a relationship which indicates that the two newly created classes are implementers of the interface.
应用推荐