Builder
Def:
- Separate the construction of a complex object from its representation so that the same construction process can create different representations.
- Parse a complex representation, create one of several targets.
想像當產生出來的object 越來越多選項
越來越複雜的的同時
就需要利用builder 這個design pattern
沒有留言:
張貼留言