Factory method pattern is a creational design pattern that provides an interface for creating objects in a superclass but allows subclasses
to alter the type of objects that will be created.
It is particularly useful when the exact type of the object to be created is determined at runtime.
Programming principles used in Factory Pattern :
Dependency Inversion prenciplestates that -:- Depend on abstractions, not on concrete classes.
- High-level modules should not depend on low-level modules. Both should depend on abstractions.
GoBack to Design Patterns