Java is not allowing inheritance from multiple classes (still it allows inheritance from multiple interfaces.), I know it is very much inline with classic diamond problem. But my questions is why java is not allowing multiple inheritance like C++ when there is no ambiguity (and hence no chances of diamond problem) while inheriting from multiple base class ? If you want mixins(=the good parts of MI) in a jvm language, have a look at scala.
以上就是Multiple Inheritance in java.的详细内容，更多请关注web前端其它相关文章！