Builder
2013-10-12 17:46:51 9 举报
设计模式--创建型--Builder
作者其他创作
大纲/内容
ConcreteBuilder1
+ BuildPartA()+ BuildPartB()
return builder.CreateProduct();
ConcreteBuilder2
Client
- builder: AbstractBuilder
+CreateProduct(): Product
builder
Product
product = new Product();BuildPartA();BuildPartB();return product;
AbstractBuilder
+BuildPartA()+BuildPartB()+CreateProduct():Product
0 条评论
下一页