0
Does Hybrid Class (multi-inheritence) concept exist in Java like in C++ and D? Why?
Hybrid; Multi-Inheritence; C++; D
4 Réponses
+ 1
in java you don't need Hybird , in case just import and use the methods you want , in real world every man has only one parent .
0
No, it doesn't.
0
Why Java does not support Multi-inhertence (Hybrid) concept?
- 1
Hybrid is not supported due to ambiguity unless you work around it with interfaces.
Incase you don't know what is meant by ambiguity, I'll explain. If you have a parent class with a method, and two child classes that override that method, then have another child class that extends both the previous child classes, the program wouldn't know which method to run.