本文介绍了什么是最好的面向对象的设计实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有发现任何这样的问题。
I didn't find any question that would be this general.
请发表任何您认为是面向对象设计的有用规则。
Please post whatever you find to be a useful rule for oject-oriented design.
推荐答案
有很多很多OOD做法(Google it!)如果你不得不选择别人,我会用为首字母缩略词;
There are many, many OOD practices (Google it!) if you had to pick over others I would go with SOLID an acronym for;
- Single Responsibility Principal
- Open/closed principle
- Liskov substitution principle
- Interface segregation principle
- Dependency inversion principle
这篇关于什么是最好的面向对象的设计实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!