In Java how interface allows multiple inheritance? Please help with example. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 1
Use the keyword 'default', when you implement a method in an interface.
1st Nov 2017, 7:31 PM
1of3
1of3 - avatar