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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -