- Multiple inheritance causes more problems and confusion than it solves
- The designers' extensive C++ experience taught them that multiple inheritance just wasn't worth the headache.
- Multiple interface inheritance still allows an object to inherit methods and to behave polymorphically on those methods.
Suppose java had multiple inheritance like below
public class Parent1 { |
Hence java doesn't support multiple inheritance.
No comments:
Post a Comment