建造者模式
2019-06-15 19:15:29 32 举报
建造者模式UML图(求点赞)
作者其他创作
大纲/内容
依赖
Director
- builder:AbstractBuilder
+ Director(AbstractBuilder)+ construct():Product
ConcreteBuilderB
+ buildPartX():void+ buildPartY():void+ buildPartZ():void
Client
+ main():void
继承
AbstractBuilder
# product:Product = new Product()
+ abstract buildPartX():void+ abstract buildPartY():void+ abstract buildPartZ():void+ final build():Product = new Product()
Product
ConcreteBuilderA
聚合
0 条评论
下一页