filmov
tv
Design Pattern | Factory Pattern | Factory Design Pattern in Java

Показать описание
Source Code :
When to use :
1. A class cannot anticipate the type of objects it needs to create beforehand.
2. A class requires its subclasses to specify the objects it creates.
3. You want to localize the logic to instantiate a complex object.
learn More :
When to use :
1. A class cannot anticipate the type of objects it needs to create beforehand.
2. A class requires its subclasses to specify the objects it creates.
3. You want to localize the logic to instantiate a complex object.
learn More :