ECS510 Algorithms and Data Structures in an Object-Oriented Framework (“ADSOOF”)

The Ducks example

This is the code, given as Java files, from John Brewer's paper Why a Duck?.

Here are some more files, which weren't in the Brewer paper, but use the same example to demonstrate another design pattern concept, the Factory Object:

Why “Why a Duck?”?

Film buffs will, of course, know, but in case you were wondering, the title of Brewer's paper comes from what is perhaps the most well-known scene in any of the Marx brothers' films. It is in the film “The Cocoanuts”, script here, clip here.


Matthew Huntbach

Last modified: 16 July 2019