-
Notifications
You must be signed in to change notification settings - Fork 785
2019-06-28:谈一谈单例模式,建造者模式,工厂模式的使用场景?如何合理选择? #86
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
Comments
抛砖引玉 单例模式 顾名思义,只有一个实例,一般用来网络请求的实例 建造者模式,不是很熟悉,AlertDialog的创建使用的是这个 工厂模式,批量生产相似的产品,可用来设计Activity的基类 |
|
|
简单工厂:一工厂 多产品; |
单例模式 |
No description provided.
The text was updated successfully, but these errors were encountered: