首页 > 解决方案 > Why Java doesn't implement MRO like Python

问题描述

As far as I know Java doesn't support multiple inheritance to safeguard from the diamond problem, ambiguity and maybe a few other reasons as well. But I see that Python handles the same problem with Method Resolution Order (MRO). Why doesn't Java incorporate something similar to support multiple inheritance?

标签: javamultiple-inheritance

解决方案


推荐阅读