what is hiehracl inheritance give example
Answers
Answered by
1
Answer:
Explanation:
In hierarchical inheritance, all features that are common in child classes are included in the base class. For example, Physics, Chemistry, Biology are derived from Science class. Similarly, Dog, Cat, Horse are derived from Animal class.
Similar questions