建造者模式
2019-07-17 11:25:46 35 举报
建造者模式
作者其他创作
大纲/内容
Builder
protected Product product;
bulidPartA()bulidPartB()bulidPartC()getResult():Product
Director
builder:Builder
+construct(Builder builder)
builder.buildPartA()builder.buildPartB()builder.buildPartC()return builder.getResult()
Product
PartA;PartB;PartC;
+ operation1(params):returnType- operation2(params)- operation3()
ConcreteBuilder
bulidPartA()bulidPartB()bulidPartC()
0 条评论
下一页