- 1 current stop: learning
- 2 upcoming
- 3 upcoming
- 4 upcoming
- 5 upcoming
Finish after stop 5
Stop 1 of 5 · Bike rental counter
Trick to keep in mind+3 XP
is-a means extends; can-do means implements.
Inheritance claims that a subclass really is a kind of its parent, and it shares code. An interface only describes a capability, so classes with no family relationship can all promise it. A loop that needs just one capability can then depend on the interface and ignore the rest of each class.
Read it once, then a question tests whether the trick stuck.