Builder design pattern: Why do we need a Director?
The core portion of the Builder pattern concerns the Abstract Builder and its subclasses (concrete builders). According to GoF’s Design Patterns, director simply “notifies the builder whenever a part of the product should be built”, which can be perfectly done by the client. The StringBuilder class in the Java API is an example of a … Read more