Multiple Inheritance

Inheriting from more than one parent type, supported in Java through interfaces rather than classes.

What is Multiple Inheritance in Java?

Multiple Inheritance — Inheriting from more than one parent type, supported in Java through interfaces rather than classes.

class Alert {
    String text() {
        return "Alert";
    }
}

class EmailAlert extends Alert {
    @Override
    String text() {
        return "Email";
    }
}

Level: Journeyman · More Java terms at this level

Updated