Types of Inheritance
Learn about the various types of inheritance in Python.
Based upon parent classes and child classes, there exists the following five types of inheritance:
- Single
- Multi-level
- Hierarchical
- Multiple
- Hybrid
Single inheritance
In single inheritance, there is only a single class extending from another class. We can take the example of the Vehicle
class as the parent ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy