Inheritance

Get introduced to Inheritance, a powerful concept in Object-Oriented Programming.

We'll cover the following

Overview

Now that you have been familiarized with objects and classes, let’s talk about inheritance, one of the core concepts of object-oriented programming.

Inheritance is a concept through which you can create a new class from an already existing class. The new class inherits the properties (instance variables) and methods of the existing class. The class that inherits the class members is known as the subclass, while the class that is being inherited from is known as the superclass.

Every class is a subclass of the superclass Object which is at the very top of the class hierarchy and has no superclass of its own.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy