Scala supports single inheritance, not multiple inheritance.
Scala支持单继承,不支持多继承。
Multiple dispatch does not merely generalize polymorphism, it also provides a more flexible alternative to inheritance in many contexts.
多分派不仅仅泛化了多态性,它还在许多上下文中提供了更加灵活的继承方式。
Since Domain components are represented by interfaces and not by classes, you can use multiple inheritance to combine several previously defined components into a new one.
由于域组件是通过接口展现而不是通过类,你可以用多继承来组合几个之前定义的组件成一个新的组件。
Behaviors do not provide true "multiple inheritance" support for core language features like abstract classes and interfaces.
行为不提供真的“多重继承”为核心的语言特点,如抽象类和接口的支持。
Behaviors do not provide true "multiple inheritance" support for core language features like abstract classes and interfaces.
行为不提供真的“多重继承”为核心的语言特点,如抽象类和接口的支持。
应用推荐