java - Why is it said interface support multiple inheritance when the interface is completely abstract? -
i mean not inheriting interface. in concrete class define methods suppose do.
interfaces allow multiple "inheritance" of behavior. java not support multiple inheritance of state. interface not have state.
you can implement 1 or more interfaces (implement multiple behaviors) extend 1 class, abstract or not (inherit state 1 other class).
therefore java has "limited" support multiple inheritance, it's not multiple inheritance canonically defined.
Comments
Post a Comment