经过多年的编程,我开始使用 UML,我想确保我正确使用图表中的符号。
下图是否看起来像一个简单的 Car 类的正确表示?
更新:
实际上,我只是意识到 Make 知道模型,所以我删除了箭头,但是 Make 和 Model 不知道 Car,所以我添加了箭头:
I would make some adjustments to your original diagram:
I hope this is helpful and provides some good feedback that makes your modeling exercise thought provoking. I know I had fun creating the diagram and thinking about the relationships and some of the details. Haven't done this in awhile -