Example of hierarchical inheritance in Python
Hierarchical inheritance At the point when more than one got classes are made from a solitary base – it is called a various levelled legacy. In this program, we have a parent (base) class name Details and two youngsters (inferred) classes named Employee and Doctor. Python code to demonstrate an example of hierarchical inheritance Output