Learn practical skills, build real-world projects, and advance your career

Python Inheritance

Python supports inheritance; it also supports multiple inheritances. A class can inherit attributes and behavior methods from another class (super class or parent class) called subclass or child class.

  • Parent class is the class being inherited from, also called base class.
  • Child class is the class that inherits from another class, also called derived class.

Create a Parent Class

Any class can be a parent class, so the syntax is the same as creating any other class: