Does java support multiple inheritance? (https://i.stack.imgur.com/PkhMD.png)
Asked
Active
Viewed 43 times
2 Answers
0
If we are talking about classes and one class extend 2 other classes at the same time, the answer is no.
But, If you are using Java 8, you can achieve multiple inheritance with interfaces with default methods.
Check this here: https://www.geeksforgeeks.org/java-and-multiple-inheritance/
Brother
- 1,950
- 1
- 18
- 20