21st October 2018 | tech.ed training

The Builder Pattern

If you have a fairly long constructor i.e. a constructor with more than 3 arguments and there is a likelihood that constructor arguments could be passed in the wrong order, then consider introducing a parameter object or perhaps apply the builder pattern. An example of a long constructor would be: Using the builder pattern, you can construct your objects like this
Read More