[Previous] [Next]
The Object Factory design pattern is useful in the following circumstances:
- Keeps the client oblivious to the various classes of objects that support a particular interface expected by the client
- Controls the object creation process, which is impossible using conventional language features such as the New keyword or the CreateObject function