Ravi Kumar
When to Use a Factory Pattern
  • Moses Soliman
    Aug, 2006 23

    • 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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS