由于类别继承(Class Inheritance)和对象组合(Object Composition)是OOP软件设计的两个主要方法;在不便使用继承的场合里,常使用对象组合,此时也常用委托观念。
基于98个网页-相关网页
Martin/Odell利用几个简单的观念如物件型别(Object Type)﹑物件组合(Object Composition)﹑父子型别(Supertype/Subtype)与物件结合(Object Association)等协助建立物件导向的观念架构。
基于20个网页-相关网页
以上来源于: WordNet
Favor object composition over class inheritance.
优先使用对象组合,而非继承。
We find object inheritance hierarchies and object composition hierarchies.
我们可以看到对象继承层次结构和对象组合层次结构。
On the other hand, heavy use of object composition can make designs harder to understand.
另一方面,大量用对象的组合可能会使设计很难被理解。
This intense heat they project in a parallel beam against any object they choose, by means of a polished parabolic mirror of unknown composition, much as the mirror of a lighthouse projects a beam of light.
VOA: special.2010.09.01
Because any velocity I ascribe to a particle or an object, you will add a certain constant to it by the law of composition of velocity.
因为我描述的任何一个质点或者物体的速度,你都要根据速度叠加法则,给它加上某个常数
应用推荐