posted 6 years ago
Builder pattern is a good choice when the construction of a particular object is a complex task, and you want to have a controll over each step of this construction process. The real world example could be ie. a creation of a XML file. You can define severial methods to add new nodes, set its subelements, attributes etc..