Create relationships with aggregation or composition between the classes.
在类间创建聚集及组成关系。
Figure 1 illustrates the static relationship between the classes described.
图1说明了所描述的类之间的静态关系。
Next, create an association relationship between the classes that enables you to choose either an aggregation or a composition relationship.
下一步,在类间创建关联关系,这使您能够在聚集及组成关系中选择一个。
The user interface won't look any different — the fields will all be displayed using combo boxes — but the relationship between the classes is subtly but importantly different.
用户界面看起来没有任何不同 —这些字段都将使用组合框来显示 —但是类之间的关系稍微有些不同。
It can be used to access fields and methods in instances of a class, giving a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
可用它来访问类实例中的字段和方法,从而提供了一种在运行时将类动态地挂钩在一起,却无需类之间有任何源代码链接的方法。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
应用推荐