December 2018
Intermediate to advanced
512 pages
8h 51m
English
This chapter covers the builder pattern.
Separate the construction of a complex object from its representation so that the same construction processes can create different representations.
The builder pattern is useful for creating complex objects that have multiple parts. The creational mechanism of an object should be independent of these parts. The construction process does not care about how these parts are assembled. The same construction process must allow us to create different representations of the objects.