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

前端 未结 7 1521
没有蜡笔的小新
没有蜡笔的小新 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:22

    A class always extends only one class. That is the Object class or the class defined with the extends keyword. That class in turn can extend also only one class until eventual the Object class is reached.

提交回复
热议问题