Inheritance in java and Superclasses(Object, Class)

前端 未结 7 1628
太阳男子
太阳男子 2020-11-30 11:47

Is java.lang.Object superclass of all the custom class/objects inherited implicitly? I thought java didn\'t support multiple inheritance. The reason I ask is i

7条回答
  •  感动是毒
    2020-11-30 12:20

    Multiple inheritance means that one class has multiple direct predecessors. If A inherits from B, and B inherits from C, this is not multiple inheritance.

    I don't understand the second question ("java.lang.class Class"); you might want to rephrase that to clarify.

提交回复
热议问题