programming-java

Multiple Heritance in Java 8

One of the newest features from Java 8 is the capability and freedom of using multiple heritance with defaults method. java-installer

Take a look at the example below:

Remembering that, even with some existing restrictions when building an interface it is still a fast simple way of multiple heritance that have never existed before at Java. You can see uncountable new interesting options of OOP design.
Therefore, take so much care! Every power comes with responsabilities…