Multiple Inheritance in java

前端 未结 8 1442
無奈伤痛
無奈伤痛 2020-11-27 21:27

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. B

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 21:51

    It was a design decision of Java. You'll never get it, so don't worry too much about it. Although MI might help you make Mixins, that's the only good MI will ever do you.

提交回复
热议问题