December 2018
Intermediate to advanced
414 pages
10h 19m
English
The factory method pattern is designed to solve the following design problems:
The factory method pattern lets you decouple the call site from the instantiation site in your code. This makes it easier to refactor, update, or change the instantiation of the target object without compromising the consuming part of your code.
The factory method will be responsible for instantiating objects, instead of the call site. It usually comes in multiple flavours:
Read now
Unlock full access