Best Tutorials website


Interfaces in Java

Interfaces in Java

In Java, a class can have at the most one immediate superclass. Multiple inheritance, where a class has more than one superclass, is not allowed in Java. However, one cannot ignore the importance of multiple inheritance because a large number of real-life applications require the use of multiple inheritance. Java provides an alternative approach to support multiple inheritance by introducing a new data type known as interfaces. Although a class cannot inherit multiple classes, it can implement more than one interface.




Views: 815 | Rating star | by Sarah




View this tutorial
Broken link Report broken link?