Python Professional — Hard
Key points
- `__init_subclass__` is triggered when a class is subclassed
- It allows customization for subclasses
- It does not replace the `__init__` method
- It does not prevent further subclassing
Ready to go further?
Related questions
