2 ms·
> Abstract base classes require everything to extend from a base-level object, and also inherit it's default implementations The general OOP concept of an “abs
by dragonwriter 6y ago
> Abstract base classes require everything to extend from a base-level object, and also inherit it's default implementations
The general OOP concept of an “abstract base class” might, the particular Python implementation does not, because, as well as classic inheritance, it supports the concept of “virtual subclasses” that are registered with, but do not actually inherit from (and thus do not use the implementation of), an abc.
It shares with structural subtyping that it only defines a mandated interface, but with nominal subtyping that it requires an explicit statement of intent to conform to the interface before an object is considered to conform.