If one class is derived from another that is deriv

2020-05-09 22:38发布

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 two classes : Class A and Class B. B is inherited from A then the Base class of B would be the Object and A , so here, the multiple inheritance took place.

Anyone will please help me to clear my doubt?

7条回答
冷血范
2楼-- · 2020-05-09 23:23

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.

查看更多
登录 后发表回答