Builder
The Builder design pattern separates the construction of a complex object from its representation so that the same construction process can create different representations. Frequency of use:
Usage Medium-low
UML class diagram
A visualization of the classes and objects participating in this pattern.
Sample code
This structural code demonstrates the Builder pattern in which complex objects are created in a step-by-step fashion. The construction process can create different object representations and provides a high level of control over the assembly of the objects.
Output
See also