July 2021
Beginner to intermediate
714 pages
17h 55m
English
We often need to make a distinction between concrete classes that have a complete set of attributes and methods, and an abstract class that is missing some details. This parallels the philosophical idea of abstraction as a way to summarize complexities. We might say that a sailboat and an airplane have a common, abstract relationship of being vehicles, but the details of how they move are distinct.
In Python, we have two approaches to defining similar things:
Read now
Unlock full access