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

设计模式:观察者(Observer)模式 #64

Open
shinena opened this issue Mar 23, 2023 · 1 comment
Open

设计模式:观察者(Observer)模式 #64

shinena opened this issue Mar 23, 2023 · 1 comment

Comments

@shinena
Copy link
Owner

shinena commented Mar 23, 2023

观察者模式:定义了对象之间的一对多依赖,这样一来,当一个对象改变状态时,它的所有依赖者都会收到通知并自动更新。

@shinena
Copy link
Owner Author

shinena commented Mar 23, 2023

观察者模式提供了一种对象设计,让主题和观察者之间松耦合。

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

No branches or pull requests

1 participant