Builder Pattern
摘要
The Builder pattern is useful for creating complex objects that have multiple fields, some of which may be optional. Instead of relying on long or overloaded constructors, the Builder pattern lets you construct an object step by step and produce a fully initialized instance at the end. This chapter explains this pattern using multiple examples.