抽象工厂模式
2020-10-19 09:31:08 12 举报
抽象工厂模式
作者其他创作
大纲/内容
<<Interface>>Condo
+getCondoInfo()
EconomyCnodo
MediumBuildingFactory
+getHouse:House+getCondo():Condo
MediumCondo
MediumHouse
+getHouseInfo()
EconomyBuildingFactory
create
SuperHouse
SuperBuildingFactory
<<Interface>>House
ClientGUI
Main
BuildingFactory
+ getBuildingFactory(type:String)+getHouse:House+getCondo():Condo
SuperCondo
EconomyHouse
0 条评论
下一页