Exp10oopm A36
Exp10oopm A36
B.4 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed
above and learning/observation noted in section B.3)
Therefore we have become aware of Inheritance and it’s types and executed the source
code as above.
B.5 Question of Curiosity
(To be answered by student based on the practical performed and
learning/observations)
1. Why multiple Inheritance is not supported by Java?
[ANS]. Java does not support multiple inheritance with classes due
to several reasons, primarily to avoid complexity and ambiguity:
1. Diamond Problem: Ambiguity in method inheritance from
multiple classes.
2. Simplicity: Keeps the inheritance model straightforward.
3. Maintainability: Reduces complexity in class hierarchies.
4. Interface Mechanism: Provides a way to achieve multiple
inheritance through interfaces.