Monthly Archives: February 2004

Factory Design Pattern

Let say we have some Pet domain classes. Pet is an interface which is implemented by Cat and Bird. Nothing more complicated than that for now. Of course you can always say:

This does indeed work. But let’s say you just want a Pet and you don’t really care what kind it is as […]

Posted in Design Patterns | Tagged , , , | 1 Response