Classes, inheritance, polymorphism, encapsulation, magic methods.
Each .py file contains THEORY (docstring at top) + PRACTICE (numbered runnable sections).
python3 core-python/modules/04-object-oriented-programming/01_classes_objects.py| File | Topic |
|---|---|
01_classes_objects.py |
class, init, methods |
02_inheritance.py |
super(), MRO |
03_polymorphism.py |
Duck typing, ABC |
04_encapsulation.py |
@property, private attrs |
05_magic_methods.py |
str, add, len |
→ Next: 05-data-handling
Interview prep: INTERVIEW.md — 24+ questions with answers