我导入了多个接口,如下所示: import * as typeDefTypes from "../graphSchemas/generatedTypes" 现在我想用它们内部的所有接口来扩展另一个接口。我尝试使用扩展运算符,但这确实不起作用: interface ResolverInterface {} 我的意思是我可以像这样: interface Res
//Eclipse IDE picked this unimplemented method with the compiler error
}
不陷入这种情况是程序员的责任吗为什么Java允许一个接口扩展多个接口?什么时候java已经避免了一个类继承多个超类的类似问题?在从多个接口继承相似常量的情况下,子类中的interfacename.constantname避