java does not support multiple inheritance

java does not support multiple inheritance, but support multiple inheritance , that is, a class can only inherit a class, use the extends keyword

A class can implement multiple interfaces , separated by commas between the interface using the implements keyword

An interface can inherit multiple other interfaces , with a funny split between the interface, use the extends keyword

That is, in java, the class of multiple inheritance is not legitimate, but allows multiple inheritance between interfaces

Guess you like

Origin www.cnblogs.com/yanguobin/p/11601324.html