Python and FastAPI
Module 9 · Object-oriented Python
Classes and objects from scratch to design: attributes, methods, inheritance, dunder methods, dataclasses, properties, abstract classes, composition and patterns.
8 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 8
9.1 OOP thinking: objects and responsibilities
-
Lesson 2 of 8
9.2 Classes and instances
-
Lesson 3 of 8
9.3 Inheritance and polymorphism
-
Lesson 4 of 8
9.4 Dunder methods (operators)
-
Lesson 5 of 8
9.5 Dataclasses
-
Lesson 6 of 8
9.6 Properties and encapsulation
-
Lesson 7 of 8
9.7 Abstract classes and interfaces
-
Lesson 8 of 8
9.8 Composition over inheritance and common design patterns