December 2018
Intermediate to advanced
414 pages
10h 19m
English
In our example, we successfully refactored our ContactsController with the help of multiple factory methods. As you will have noticed, we haven't created a factory object—factory methods are simply methods that create new instances of objects each time.
In order to implement the factory method pattern you will need to:
Unlike other patterns, ...
Read now
Unlock full access