Question
Categorize the following relationships into generalization, aggregation, or association. Beware, there may be n-ary associations in the list, so do not assume every relationship involving
Categorize the following relationships into generalization, aggregation, or association. Beware, there may be n-ary associations in the list, so do not assume every relationship involving three or more classes is a generalization. Explain your answers.
a. A country has a capital city.
b. A dining philosopher uses a fork.
c. A file is an ordinary file or a directory file.
d. Files contain records.
e. A polygon is composed of an ordered set of points.
f. A drawing object is text, a geometrical object, or a group.
g. A person uses a computer language on a project.
h. Modems and keyboards are input/output devices.
i. Classes may have several attributes.
j. A person plays for a team in a certain year.
k. A route connects two cities.
l. A student takes a course from a professor.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started