Inheritance

This lesson discusses inheritance, i.e., one class inheriting attributes and methods of another class.

We'll cover the following

Class Inheritance

Inheritance is an essential part of object-oriented programming. Inheritance is a process in which a subclass can inherit the attributes and methods of another class, allowing it to rewrite some of the super class’s functionalities. For instance, the Person class in the first lesson we could permit us to create a subclass for people at 10 years of age.

Get hands-on with 1200+ tech skills courses.