November 2017
Intermediate to advanced
670 pages
17h 35m
English
We are told that ducks can walk and quack. So we implement those behaviors in our parent class, namely Duck:


We start out with Mallard and BlueBilled ducks. We are able to reuse the walk() and quack() methods via inheritance.
Next, we hear that ducks can fly. So we implement the fly behavior in our Duck class and all the child classes inherit this new behavior:

All is well until we add Pekins ducks to our ...