设计模式之【抽象工厂】
2022-03-03 17:51:07 10 举报
设计模式之【抽象工厂】和【工厂方法】
作者其他创作
大纲/内容
BMWCarEngine
+ start():void
Implements
BMWCarWheel
+ run():void
使用
BenzCarWheel
CarDemo
...
+main():void
BenzCarEngine
<interface>
Abstract Factory
BMWCarFactory
+getEngine():ICarEngine+getWheel():ICarWheel
extends
<ICarEngine>
AudiCarFactory
BenzCarFactory
<ICarWheel>
AudiCarEngine
CarFactory
AudiCarWheel
收藏
0 条评论
下一页