命令模式
2020-11-25 09:28:49 4 举报
命令模式ur图
作者其他创作
大纲/内容
Command
+ dosometing():void
User
user
Implements
SellReceive
-Receive:Receive
+SellReceive()+doSometing()
BuyReceive
+BuyReceive()+doSometing()
Client
+main():void
Receive
+name:String+quainty:int
+buy()+sell()
Invoker
+CommandList:List
+addCommand:void-replaceCommand:void
0 条评论
下一页