Which UML relationships should be used between a subclass and a superclass? Answ
ID: 3910679 • Letter: W
Question
Which UML relationships should be used between a subclass and a superclass?
Answers:
Choose all that apply.
Realization
Aggregation
Generalization
Composition
Bidirectional
Unidirectional
None of these
Which UML relationships should be used between a class which contains a collection of instances of another class?
For example, suppose there is a class Journal which has one class variable: an ArrayList of Page objects. What relationships may exist between Journal and Page?
Choose all that apply.
Generalization
Aggregation
Composition
Dependency
Unidirectional
Bidirectional
None of these
a.Realization
b.Aggregation
c.Generalization
d.Composition
e.Bidirectional
f.Unidirectional
g.None of these
Explanation / Answer
generalization , with the arrow head facing the superclass.
A journal is made up of pages , and if you take out the pages , the journal will sieze to exist. Therefore composition.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.