Back to the map
Course 7 · Intermediate
Objects & Classes
Design your own types with classes, dataclasses and enums
Lanterns, potions, golems and guild ledgers all have data and behavior. In this course you'll bundle the two together into your own types: write classes with methods, connect them through composition and inheritance, guard their data with properties, and model clean records with dataclasses and enums.
- Chapter 1
Build Objects
Write your first classes: attributes, methods, `self` and friendly printing.
0/6 - Chapter 2
Design Relationships
Connect classes with composition and inheritance, and protect data with properties.
0/6 - Chapter 3
Model Records
Describe data cleanly with dataclasses, enums and value equality.
0/6