创建型-建造者模式
2022-05-08 16:39:25 18 举报
建造者模式UML
作者其他创作
大纲/内容
Client
ConcreteBuilder(具体建造者)
+ buildBasec():void+ buildWalls():void+ roofed():void+getResult():House
组合
依赖指挥者
HouseBuilder(抽象建造者)
+ buildBasec():void+ buildWalls():void+ roofed():void+getResult:House
产品(House)
buildBasic:StringbuildWalls:Stringroofed:String
HouseDirctor(指挥者)
+houseBuilder:HouseBuilder
+constructHouse():HouseHouseDirector(HouseBuilder houseBuilder)
聚合
0 条评论
下一页