In Java how interface allows multiple inheritance? Please help with example. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
Use the keyword 'default', when you implement a method in an interface.
1st Nov 2017, 7:31 PM
1of3
1of3 - avatar