Java / Design Patterns
Advantages of Factory method design pattern.
Factory Method Pattern allows the sub-classes to choose the type of objects to create.
Promotes the loose-coupling by eliminating the need to bind application-specific classes into the code. That means the code interacts solely with the resultant interface or abstract class, so that it will work with any classes that implement that interface or that extends that abstract class.
More Related questions...