← Quiz: UML Class Diagrams: all 10 questions
Quiz: UML Class Diagrams · Question 10 of 10
A method print(Report r) uses a Report only as a parameter. Which relationship is this?
A method print(Report r) uses a Report only as a parameter. Which relationship is this?
- A.Composition
- B.Aggregation
- C.Inheritance
- D.Dependency (dashed arrow)
Answer & explanation
Correct answer: Dependency (dashed arrow)
A short-lived use through a parameter or local variable is a dependency, not a stored association.
Can you get the rest right without peeking?
Take the timed Quiz: UML Class Diagrams quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →