Inheritance

This lesson introduces the concept of Inheritance focusing on base and derived classes

What is Inheritance

  • Provides a way to create a new class from an existing class.

  • New class is a specialized version of the existing class.

Terminology

  • Base Class(or Parent): inherited by child class.
  • Derived Class(or child): inherits from base class.

Notation

Let’s take a look at the notation for these two types.

Create a free account to access the full course.

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