Python Classes & Inheritance: Working with Inheritance in Python


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this 12-video course, learners will discover how to implement inheritance by using Python classes and explore coding examples of concepts such as base classes, derived classes, overriding methods, and polymorphism. Key concepts covered in this course include the default base class for all Python classes; how to model an is-a relationship by using inheritance; and how to invoke base class methods from subclasses. Next,  you will observe how to define implementations for base class methods; learn to work with superclass and subclass hierarchies; and learn to define methods in a subclass and the idea of subclasses having additional attributes. Continue by learning about multiple inheritance levels in classes; multiple base classes for a single subclass; and polymorphism, an important characteristic of objects in object-oriented programming. Then you will learn to implement polymorphism in Python; learn about class inheritance and polymorphism; and learn to implement base and derived classes. Finally, learn to specify an init method to initialize member variables; learn about getters and setters for member variables; and learn to override a method.



Expected Duration (hours)
1.2

Lesson Objectives

Python Classes & Inheritance: Working with Inheritance in Python

  • discover the key concepts covered in this course
  • recall the default base class for all Python classes
  • model an is-a relationship using inheritance
  • invoke base class methods from subclasses
  • provide implementations for base class methods
  • work with class hierarchies
  • define methods in a subclass
  • define multiple inheritance levels in classes
  • define multiple base classes for a single subclass
  • recall what polymorphism is
  • implement polymorphism in Python
  • implement base and derived classes, specify an init method to initialize member variables, define getters and setters for member variables, and override a method
  • Course Number:
    it_pycipydj_03_enus

    Expertise Level
    Intermediate