How does multiple inheritance in Java work? [duplicate]
问题 This question already has answers here : Java : If A extends B and B extends Object, is that multiple inheritance (11 answers) Closed 4 years ago . Class Object is the root of class hierarchy. Every class has Object as a superclass. So, if I am extending a API class, will it be like, multiple inheritance? Obviously, Java doesn't support multiple inheritance. How does it then work? 回答1: Superclass is not the same thing as parent class. You can only have one mother, but you have a much larger