Another approach to the Expression Problem is multiple inheritance, in which one subclass can extend many superclasses. 表达式问题的另一种方法是多重继承(MI),即一个子类可扩展许多超类。
However, multiple inheritance being used only for interface implementation was thought to alleviate this problem somewhat. 不过,多重继承(MI)只能用在被认为可以减轻这一问题的接口实现中。
Users must understand the differences and interactions between metaclass programming and traditional object-oriented programming ( under both single and multiple inheritance ). 用户必须理解元类编程和传统面向对象编程的不同点和相同点(单继承和多继承)。
Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance. Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承(MI)的简单替代方案)来扩展。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse. 遗憾的是,彻底放弃私有继承和多重继承(MI)会使我们在代码重用方面付出昂贵的代价。