Like all the cool languages, Scala also supports implementation inheritance (see Resources).
与所有杰出的语言一样,Scala也支持实现继承(参见参考资料)。
Because interfaces do not support implementation inheritance, the pattern that applies to classes does not apply to interfaces.
由于接口不能支持继承,用于类的模式不能用于接口。
This silence is odd, considering that there is a simple mechanism in XML Schema that can be used to provide the same effect as implementation inheritance: the extension mechanism.
这种沉默是暂时的,因为 XML Schema中有一种简单的机制可以用来达到与实现继承同样的目的:扩展机制。
应用推荐