4 ms·
Good answer. That actually makes sense with the Image example, but OTOH there's still cases where a separate factory class is used where a static method would w
by strlen 16y ago
Good answer. That actually makes sense with the Image example, but OTOH there's still cases where a separate factory class is used where a static method would work.
- rbanffy 16y agoI think that's one of the reasons. It's so nice to be able to provide a different GadgetFactory during tests or at different moments that some developers decide it would be cool to have the possibility to provide different factory implementations for every class, just in case they need it afterwards.