... 打开关闭原则 The Open/Closed Principle (OCP) 延伸阅读(Further Reading ): 组合超越继承 Composition over Inheritance ...
基于1个网页-相关网页
以上来源于: WordNet
Favor composition over inheritance.
优先使用组合,而不是继承。
It is my prototypical example for the flexibility of composition over inheritance.
这是我用以说明组合的灵活性要比继承好的最佳样板。
I find myself agreeing with Ashraf in his advocation of using basic oo design principles (encapsulation, loose coupling, favour composition over inheritance etc) concepts in applying these to SOA.
我比较赞同ashraf的观点——将OO的设计原则(封装、松耦合、重组合轻继承)应用于SOA。
应用推荐