In this lesson
- It starts with a question. You have a Boat class. A FishingBoat has everything a boat has, plus nets. What is the cleanest route?
- The idea you will find. Is it a kind of, or part of? — Get this wrong and the design fights you forever. A car has an engine; it is not a kind of engine. Shallow hierarchies with clear "is a kind of" relationships age well; deep ones built on convenience do not.
- How you learn it. By doing: sorting.
- Length. 5 short steps. Progress saves on this phone.
Part of Python: Classes & Objects
Classes and objects: bundling what a thing knows with what it can do.