MemotivaObject-oriented programming

What is the difference between an abstract method and a regular method?

Object-oriented programming

Audio flashcard · 0:16

Nortren·

What is the difference between an abstract method and a regular method?

0:16

An abstract method is declared but not implemented in a base class, requiring subclasses to provide an implementation. Python supports abstract methods through the abc module using the ABC base class and the abstractmethod decorator. A class with unimplemented abstract methods cannot be instantiated. ---
docs.python.org