The students in the composition class were assigned the task of writing an essay on "the most beautiful thing I ever saw."
作文课上同学们在写关于“曾见过的最美的事物”的论文。
The Aggregation property is important for complex types: it has to be set to Composition for attributes of a class type and Shared for attributes of metaclass or stereotype.
聚合属性对于复合属性集非常重要:它必须要为类的属性设置成 Composition 并且为元类的原型类型设置为 Shared 。
Another important feature of composition aggregation is that the part class can only be related to one instance of the parent class (e.g. the Company class in our example).
组合聚合的另一个重要功能是部分类只能与父类的实例相关(举例来说,我们例子中的Company类)。
应用推荐