Sahithyan's S2 — Program Construction
Creational Design Patterns
Deals with how classes are created.
Builder Pattern
A way of creating complex objects on a step-by-step basis. The constructor will
not take all the available attributes. Instead, the object creation logic is
moved to a Builder
class.
CarBuilder carBuilder = new CarBuilder();carBuilder.brand("Ford").color("red");Car mine = carBuilder.build();
Director
Defines the order in which the constructor calls should be called. Optional.