Tutorial 5 of 8 · Low-level design · Principles and patterns · Intermediate
SOLID, one principle at a time
Five rules of thumb for classes that stay simple to change, each shown as a small before and after.
6 lessons, the last is a challenge · about 1 h 30 min · Python and Java
Before you start
You finished "Encapsulation: guarding an object's data": you keep fields private and let a class's own methods change them.
You finished "Interfaces and polymorphism in design": you can write an interface with a few classes behind it, and hand an object into a class through its constructor.