Skip to content

Chapter 6: OOP

This chapter provides a comprehensive guide to object-oriented programming in Python, from foundational concepts through advanced topics like descriptors, metaclasses, dataclasses, and design patterns.

6.1 OOP Foundations

6.2 Attributes and Methods

6.3 Four Pillars of OOP

6.4 Advanced Inheritance

6.5 Composition and Aggregation

6.6 Dunder Basics

6.7 Dunder Advanced

6.8 Properties

6.9 Descriptor Protocol

6.10 Dunder Attribute Hooks

6.11 Dynamic Attribute Access

6.12 dataclasses

6.13 Enumerations

6.14 Abstract Base Classes

6.15 Metaclasses

6.16 OOP Projects