Tutorial 4 of 8 · Low-level design · Building blocks · Intermediate
Interfaces and polymorphism in design
Write code against what an object can do, not what it is, so a new kind slots in without edits.
5 lessons, the last is a challenge · about 1 h · Python and Java
Before you start
You finished "Composition over inheritance": you can give a class a part it holds in a field and pass the work on to that part.
You have read "Objects that share behaviour" in the Programming fundamentals path: you have met an override, an abstract class and a Java interface once.