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

使用建造者模式实例化对象 - Mr.Sheng #145

Open
SWZDL opened this issue May 11, 2021 · 0 comments
Open

使用建造者模式实例化对象 - Mr.Sheng #145

SWZDL opened this issue May 11, 2021 · 0 comments

Comments

@SWZDL
Copy link
Owner

SWZDL commented May 11, 2021

https://shengwenzeng.cn/2020/08/11/%E4%BD%BF%E7%94%A8%E5%BB%BA%E9%80%A0%E8%80%85%E6%A8%A1%E5%BC%8F%E5%AE%9E%E4%BE%8B%E5%8C%96%E5%AF%B9%E8%B1%A1/

Java中一切皆对象。对象具有属性和方法,当实例化一个对象时,如果该对象具有非常多的属性,使用普通的set方法将会非常繁琐,并且容易丢失某些属性的赋值。 一般的weather实体类及其实例化方法

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

1 participant