Howtocountallquackers_img1.gif 2.1 How to count all quackers
One of the problems we have with our implementation is that we tend to miss some of the quackers when we wrap them in a QuackCounter. We'd like to have a way of ensuring that, when we need to, we get all quackers counted. It would be great to have some way of creating the different IQuackable objects appropriately, in one place in our system's code. The Factory pattern (also called the Factory Method pattern) let us do this.
graphic