Additionally, altering the static structure of an interface can have undesirable side effects if not approached with caution: One must ensure that all implementers of the target interface are found.
另外,如果不谨慎处理,改变一个接口的静态结构将出现很多不希望的副作用:必须找到目标接口的所有实现者。
However, whereas a class can extend only one other class, an interface can extend any number of interfaces.
然而,类只能继承一个类,而接口可以继承多个接口。
In addition, an interface can contain constant declarations.
另外,接口可以包含常量声明。
Anything that provides an Iterable facility (technically a trait in Scala, but think of it for now as an interface) can be used as the heart of the for expression.
提供Iterable功能(从技术上说,它是Scala中的一个特征,但现在将它视为一个接口)的任何东西都可以用作for表达式的核心。
An interface can declare an event.
接口可声明事件。
An interface can specify methods, properties, events, and indexers for classes to implement.
一个接口可以为将要实现的类指定方法、属性、事件、和索引器。
An interface can be declared with any accessibility, but interface members must all have public accessibility.
接口可以用任何可访问性来声明,但接口成员必须全都具有公共可访问性。
An interface can be declared with any accessibility, but interface members must all have public accessibility.
接口可以用任何可访问性来声明,但接口成员必须全都具有公共可访问性。
应用推荐