Suitable environment.
1.Creation of complex object and don’t want to know how it is assembled (need encapsulation of creation process)
2.For same object ,it have more than one construction representation.
E.g
House buyer(Client),Construction company(Director),worker
Why suitable for construction pattern?
1.Client tell construction company wants 2 windows house or Jeff House which have two window.—>2.For same object ,it have more than one construction representation.
2.Client don’t want to know how it is built.—–>1.encapsulation
PS.
GOF explain this pattern very well.
版权声明:本文为博主原创文章,未经博主允许不得转载。
Builder pattern - best understanding
原文地址:http://blog.csdn.net/chungchi300/article/details/46875745