The Builder Pattern (video)
The Builder pattern allows you to hide the configuration of complex objects in a separate class. It makes sense to use it when you feel like the creation of an object has become too complex, and you’re repeating the process in a few different places. Or, when you need to create an object with different possible configuration options.
Post a comment