| 名称 | Builder |
| 结构 | |
| 意图 | 将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。 |
| 适用性 |
|
1
// Builder
2
3
// Intent: "Separate the construction of a complex object from its
4
// representation so that the same construction process can create
5
// different representations".
6
7
// For further information, read "Design Patterns", p97, Gamma et al.,
8
// Addison-Wesley, ISBN:0-201-63361-2
9
10
2
3
4
5
6
7
8
9
10