构造者模式
2020-12-07 19:59:44 0 举报
构造者模式
作者其他创作
大纲/内容
Redirect
- computerBuilder:AbstractComputerBuilder
+ construct:Computer
HuaWeiComputerBuilder
+ assembleCPU:void+ assembleMomnitor:void
computerBuilder.assembleCPU(); computerBuilder.assembleMonitor(); return computerBuilder.buildComputer();
具体建造者建造者
抽象建造者
Computer
- cpu:Cpu- monitor: Momnitor
setter
AbstractComputerBuilder
- computer:Computer
+ assembleCPU:void+ assembleMomnitor:void+ buildComputer:Computer
指挥者
XiaoMiComputerBuilder
产品
0 条评论
下一页