- When a class does not know which class of objects it must create.
- A class specifies its sub-classes to specify which objects to create.
- Generally, you can use factory pattern where you have to create an object of any one of sub-classes depending on the data provided.
Interviews1 answer
When to Use a Factory Pattern
1 Answer
Moses SolimanPosted Aug 23, 2006, 9:56 AM EDT

