Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote