In the book, I read that the hierarchy of interfaces is different from the hierarchy of classes, so what is the hierarchy of the interface?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants of rjhdby , Streletz , JuriySPb , HamSter , aleksandr barakin 16 Oct '16 at 11:40 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Expand the meaning of the word "hierarchy" in this context - YuriySPb
  • I understand that the hierarchy of classes, I mean inheritance, and in the interfaces there is no implication there. I understood everything then !! - Alexander Kukhtin

1 answer 1

It is not very clear what was meant in the above quotation, but briefly the matter is as follows

  1. Each class can be inherited only from one other class.
  2. Each class can implement multiple interfaces, up to 65K pieces.
  3. Each interface can be inherited from multiple interfaces.