Python · Section 2

Object-Oriented Python

How to define a class, build objects from it, and give them behaviour — then the three ways one object can relate to another, and when to reach for inheritance versus composition.

Difficulty: beginner200 min5 parts43 concepts