多重组成关系

multiplicity of composition relationship

根据我的理解,没有复合对象就不能存在零件对象。但是在这张图中,根据给定的重数,B类对象可以没有A类对象。可能吗?这是什么意思?

根据 UML 规范 (9.5.3)

Composite aggregation is a strong form of aggregation that requires a part object be included in at most one composite object at a time. If a composite object is deleted, all of its part instances that are objects are deleted with it.

图表完全正确(即使在UML考试中你也会找到这样的例子)。

语义是 class B 的对象 - 如果在组合中 - 是 A 的一部分(A 对 B 负责,当 A 被删除时,此时它的部分的所有对象都将是也删了)。作为 class A 的一个对象的一部分的类型 B 对象不能同时是类型 A 的其他对象的一部分。但是,类型 B 的对象可能不是任何对象的一部分类型 A.

这就是你的情况。所以类型 B 的对象要么不属于任何类型 A 的对象(并且在您的模型中是可能的),要么恰好属于一个类型 A 的对象。