Strategy, Factory and Observer: three named shapes of classes that solve problems you will meet again and again.
You finished "SOLID, one principle at a time": you have seen the open/closed rule, "add a class, do not edit the old one".
You finished "Interfaces and polymorphism in design": you can write an interface, hand an object in through a constructor, and read a class diagram and a sequence diagram.
Lesson 1 · A name for a shape you will see again
Next: 7 · Design a parking lot · 6 lessons · 1 h 15 min
Try the same model with your own values. No checks, nothing recorded.
Open the playground