Benefits:
It permits you to vary an object’s internal representation.
It isolates the code for construction and representation.
It provides finer control over the construction process.
Applicable Scenarios:
The algorithm for creating a complex object needs to be independent of the components that compose the object and how they are assembled.
The construction process is to allow different representations of the constructed object.
该博客介绍了一种对象构建算法,其优势在于可改变对象内部表示、隔离构建与表示代码、精细控制构建过程。适用场景为创建复杂对象的算法需独立于对象组件及其组装方式,且构建过程允许对象有不同表示。
4万+

被折叠的 条评论
为什么被折叠?



