a global aspect utilizing a signature pattern based on packages and the inheritance hierarchy would serve you better in this situation.
在这种情况下,利用基于包和继承层次结构的签名模式的全局方面可以做得更好。
there is inheritance, though: sdo understands an inheritance hierarchy among types, and given a property expecting a given type, you can assign a subtype.
但存在继承性:sdo理解类型间的继承层次结构,给定属性要求给定类型,可指派子类型。
changing the inheritance hierarchy of an object requires a declare parents tag.
改变对象的继承层次需要一个declareparents标签。
multiple inheritance supports a much richer inheritance hierarchy for the problems that require it.
如果需要,多重继承支持更丰富的继承层次结构。
we also see that all these objects can contain a number of tag/dataelements since this composition is represented at the parent of the object inheritance hierarchy (dicomdata).
you can add methods and variables, and change the inheritance hierarchy according to specific rules.
你可以增加程序和变量,并根据特殊的规则改变继承性层次。
if you have an inheritance hierarchy that is too broad, inheritance will break down.
如果已有的继承等级非常宽,继承就会失效。
the root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.
继承层次关系的根类应该定义虚函数性质的析构函数,即使这个析构函数不做任何的事情。
if you would like to rename this method, a check of all classes in the inheritance hierarchy is needed to find all positions in the code which should be changed.
如果你要重命名这个方法,必须检查继承层次中的所有类,以找到应该做出改变的所有位置。
classes in the same inheritance hierarchy typically belong in the same package.
一般位于同一继承层次上的类也属于同一个包。
that is, a customer 「is-a-kind-of」 user and a pa 「is-a-kind-of」 user, which on the surface seems like a natural fit for the type of inheritance hierarchy that reflects those relationships.
instead, we'd either have to copy code along multiple paths in the inheritance hierarchy or employ the strategy pattern (or some other trick using containment) to avoid copying code.
the reason is simple: the module has an inheritance hierarchy of its own.
原因很简单:模型具有自己的继承层次结构。
the standard mbeans convention would make the interfaces depend on the implementations and represents a needless duplication of the inheritance hierarchy for this system.