🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Composition
  2. B.Aggregation
  3. C.Inheritance
  4. 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 →