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

设计模式 | 陈军的博客 #59

Open
rob2468 opened this issue Jul 22, 2022 · 0 comments
Open

设计模式 | 陈军的博客 #59

rob2468 opened this issue Jul 22, 2022 · 0 comments

Comments

@rob2468
Copy link
Owner

rob2468 commented Jul 22, 2022

https://blog.jamchenjun.com/2019/01/12/design-pattern/

前言模型是在某情景(context)下,针对某问题的某种解决方案。 根据模式的目标可以分成三个不同的类目:创建型、行为型和结构型。 面向对象基础:抽象、封装、多态、继承 面向对象设计原则 找出应用中可能需要变化之处,把它们独立出来,不要和那些不需要变化的代码混在一起。 多用组合,少用继承。 针对接口编程,而不是针对实现编程。 为了交互对象之间的松耦合设计而努力。 对扩展开放,对修改关闭。

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