Skip to content
KnowledgeCity

Python: Inheritance

How to understand inheritance and make it work for your programs.
Preview the first lesson free — get full access to all 4 lessons.
Course: On-Demand
Intermediate Provider Jeremy Kurtz  4 Lessons ·  17m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

This module focuses on inheritance in Python. Inheritance is an advanced Python concept referring to the creation of a second class that takes on the properties and functions of another class. The child class inherits from the parent class. It’s important to understand inheritance so you can better utilize the Python skills you’ve gained so far. This module delves into the techniques and concepts you need to put inheritance to work in your own programs.

What You'll Learn

  • Explain what inheritance is in Python and why it matters for building on existing skills
  • Create a child class that inherits the properties and functions of a parent class
  • Distinguish how parent classes differ from child classes
  • Apply class inheritance techniques step by step through the inheriting-a-class lessons
  • Assess how inheritance impacts the structure and behavior of a program

Key Takeaways

  • Inheritance is an advanced Python concept where a second class takes on the properties and functions of another class.
  • The child class inherits from the parent class, so it gains the parent's properties and functions.
  • Understanding inheritance helps you better utilize the Python skills you have already gained.
  • Parent classes can differ from child classes, and these differences shape how the program behaves.
  • This module covers the techniques and concepts needed to put inheritance to work in your own programs.

Frequently Asked Questions

What does this Python: Inheritance module cover?

It focuses on inheritance in Python, the concept of creating a second class that takes on the properties and functions of another class, where the child class inherits from the parent class. It covers the techniques and concepts needed to use inheritance in your own programs.

What are the learning objectives of this module?

The objectives are to understand how parent classes can differ from child classes and how inheritance impacts a program.

What lessons are included in this module?

The module includes four lessons: What is Inheritance?, Inheriting a Class Part 1, Inheriting a Class Part 2, and Inheriting a Class Part 3.

Who is this module best suited for?

It is suited for learners who already have some Python skills, since inheritance is described as an advanced Python concept that builds on the skills you have gained so far.

What skills does this module relate to?

It relates to skills including Class Hierarchy, Function Module, Java Module, Multiple Inheritance, Python (Programming Language), and Software Modules.