以上来源于: WordNet
You can think of mix-ins as multiple inheritance without the multiple-inheritance headaches.
可以把mix - in看成多重继承,但是它没有多重继承的麻烦。
However, multiple inheritance being used only for interface implementation was thought to alleviate this problem somewhat.
不过,多重继承只能用在被认为可以减轻这一问题的接口实现中。
Multiple inheritance might save us from the latter problem, but it would also lead us back to virtual inheritance, which we definitely want to avoid.
多重继承可能使我们不必处理后续的问题,但它也重新将我们引向了虚拟继承,而这是绝对要避免的。
应用推荐