【发布时间】:2012-05-04 10:18:54
【问题描述】:
问题:
基础接口:
IBase
后代:
InterfaceA extends IBase<Interface1>
InterfaceB extends IBase<Interface2>
当我尝试时:
InterfaceC extends InterfaceA, InterfaceB
我收到编译错误:
The interface IBase cannot be implemented more than once with different arguments
是否存在解决方法? 谢谢。
【问题讨论】:
-
我已经检查过了 - 但解决方案是类的集群,我不知道如何为接口制作它。
标签: java interface multiple-inheritance