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

关于观察者模式中CurrentConditionsDisplay的构造函数 #5

Open
icecreampat opened this issue Jul 12, 2023 · 1 comment
Open

Comments

@icecreampat
Copy link

你好,想问一下在CurrentConditionsDisplay类中,为什么不能把weatherdate->registerObserver(this);这句直接放在构造函数中呢。我放进去后会显示段错误,但不知道是什么原因造成的。

@zihaozhang9
Copy link

zihaozhang9 commented Jul 12, 2023 via email

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

2 participants