Simple Factory Pattern
2018-06-22 23:07:30 0 举报
Simple Factory Pattern UML
作者其他创作
大纲/内容
OperationSub
+ getResult():double
OperationAdd
Operation
- first_num:double- second_num:double
+ setFirstNum(first_num:double):void+ getFirstNum():double+ setSecondNum(second_num:double):void+ getSecondNum():double+ getResult():double
OperationMul
OperationFactory
- operator:String
+ OperationFactory(operator:String):void+ getOperation():Operation
OperationDiv
此处表示“继承”关系
此处表示“依赖”关系
收藏
收藏
0 条评论
回复 删除
下一页