Unlike the abstract factory pattern, which will produce parts of products of the same family, the builder pattern will help us build the finalized product that consists of several parts.
The main purpose of the builder pattern is to abstract the building of complex objects from its actual construction. Having the same construction process can create different representations of the product.
This pattern can be used when:
The following figure shows the generic UML class diagram of the builder pattern:
This pattern is quite ...