In Java how interface allows multiple inheritance? Please help with example. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

In Java how interface allows multiple inheritance? Please help with example.

Multiple inheritance not allowed in java due to ambiguity. But how interface solves the problem

1st Nov 2017, 4:26 PM
beedisha das
beedisha das - avatar
1 Antwort
+ 1
Use the keyword 'default', when you implement a method in an interface.
1st Nov 2017, 7:31 PM
1of3
1of3 - avatar