The problem:
We need a method that could generate us different “products” based on different conditions or, why not, depending on the context. If we didn’t know about design patterns we would solve this by creating an endless if then else set of conditions. I know, this is the fastest solution that comes into your head, [...]
Posts Tagged ‘code example’
Design Patterns Part II – Factory
August 16th, 2010
No Comments