Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java面向对象设计之命令模式 | 闪烁之狐 #69

Open
blinkfox opened this issue Dec 4, 2018 · 1 comment
Open

Java面向对象设计之命令模式 | 闪烁之狐 #69

blinkfox opened this issue Dec 4, 2018 · 1 comment

Comments

@blinkfox
Copy link
Owner

blinkfox commented Dec 4, 2018

https://blinkfox.github.io/2018/10/16/ruan-jian-she-ji/she-ji-mo-shi/java-mian-xiang-dui-xiang-she-ji-zhi-ming-ling-mo-shi/

一、模式动机在软件设计中,我们经常需要向某些对象发送请求,但是并不知道请求的接收者是谁,也不知道被请求的操作是哪个,我们只需在程序运行时指定具体的请求接收者即可,此时,可以使用命令模式来进行设计,使得请求发送者与请求接收者消除彼此之间的耦合

@ivalue2333
Copy link

first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants