Abstract Base Classes

Get introduced to abstract base classes in this lesson.

It is mandatory for a derived class to implement methods of a base class. In this lesson, we’ll see how the Python built-in abc module facilitates it.

Introduction

A class that contains one or more than one abstract method is called an abstract class. An abstract method is declared, but isn’t implemented. The abc module in the Python library provides the infrastructure for ...

Access this course and 1400+ top-rated courses and projects.