The Factory Pattern

The Factory Pattern

The factory design pattern solves one big issue - your clients having to know about all the different concrete class types that they may need to instantiate.

Bill Echlin