[英]AS3: An interface implements another interface
I am so surprised that this code compiles, but what does it mean ? 我很惊讶该代码可以编译,但这是什么意思呢?
public interface IBar {}
public interface IFoo implements IBar {}
It can't be compiled because interface can't implement
the other interface but can extends
it: 它无法编译,因为interface无法implement
另一个接口,但可以对其进行extends
:
public interface IFoo extends IBar {}
Your code must leads to error: 您的代码必须导致错误:
1084: Syntax error: expecting leftbrace before implements.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.