Builder
2021-02-19 09:49:46 0 举报
构造(生成器)模式
作者其他创作
大纲/内容
Car
<Interface> Builder
+ reset()+ setSeats(number)+ setEngine(engine)+ setTripComputer()+ setGPS()
Manual
Car Builder
- car: Car
+ reset()+ setSeats(number)+ setEngine(engine)...+ getResult(): Car
CarManual Builder
- manual: Manual
+ reset()+ setSeats(number)+ setEngine(engine)...+ getResult(): Maunal
Client
Director
...
+ makeSUV(builder)+ makeSportsCar(Builder)
0 条评论
下一页