题目
单项选择题
How do you model the following situation with a class diagram:A fair is visited by at least one visitor. One visitor visits at least one fair.

查看解析
标准答案
Please login to view
思路分析
The question asks how to model the scenario using a class diagram. First, notice two key statements: (1) a fair is visited by at least one visitor, and (2) one visitor visits at least one fair. This indicates a many-to-many relationship between Visitor and Fair where participation is required on both sides (no isolated Visitor or Fair without a visit).
Option 1: Use a simple binary association between Visitor and Fair with multiplicities in both directions. If you choose this, you must express total participat......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Match the item from this UML diagram to its description
Which section in the UML holds the list of the class's data attributes?
How do you model the following situation with a class diagram:An order is placed with exactly one waiter, and a waiter can handle multiple orders
Composition, aggregation and association are shown in a :
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!