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

设计模式七大原则之合成复用原则(Composite Reuse Principle) | 浪迹一生 #158

Open
syshlang opened this issue Sep 2, 2019 · 0 comments

Comments

@syshlang
Copy link
Owner

syshlang commented Sep 2, 2019

https://www.syshlang.com/fd78ccb3/#comment-gitalk

    合成复用原则(CRP:Composite Reuse Principle)又称为组合/聚合复用原则(CARP:Composition/Aggregate Reuse Principle,),该原则指出尽量使用合成/聚合,尽量不要使用类继承。

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