If one class is derived from another that is derived from Object, is that “multiple inheritence”

前端 未结 7 1510
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 09:56

The fact about Java is that it does not support the multiple inheritance.

But I have a question that the base class of all java classes is Object.

Now we have tw

7条回答
  •  迷失自我
    2021-01-29 10:06

    class B inherits from class A which in turn inherits from Object. Object is at top of the inheritance hierarchy. This is multi level inheritance , not multiple inheritance.

提交回复
热议问题