如何在Java UML类图中显示包含其他类的抽象类?
寻找有关如何绘制包含不同类型类型的私有变量(即非重要变量)的私有变量的箭头的澄清。我以此为例,不确定是否正确。
图像:
这是正确的吗?
Looking for clarification on how to draw the arrows for an abstract class which contains private variables of a different class type (i.e. non-primitive variables). I've got this as an example and was not sure if correct.
Image:
Is this correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
而不是
实现
,这意味着更多用于接口实现的意义,您应该使用简单的概括
使用实线。这是关于混凝土从抽象类继承的继承。这也意味着该关联是继承的,这将不是事实。由于 Christophe 提到了这一点:无需在继承类中重复操作/属性。参见UML 2.5的第100页:
Rather than
Realization
which is meant more for interface realization you should use simpleGeneralization
with a solid line instead. This is about inheritance where the concrete inherit from the abstract classes. This means also that the association is inherited which for a realization would not be the case.Since Christophe mentioned it: There is no need to repeat operations/attributes in the inheriting class. See pp. 100 of UML 2.5: