我很惊讶这段代码能够编译,但这是什么意思?
public interface IBar {}
public interface IFoo implements IBar {}
最佳答案
它无法编译,因为接口(interface)无法实现
另一个接口(interface),但可以扩展
它:
public interface IFoo extends IBar {}
您的代码必须导致错误:
1084: Syntax error: expecting leftbrace before implements.
关于actionscript-3 - AS3 : An interface implements another interface,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15133273/