📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Which relationship shows that a class uses another class only temporarily?

A. Composition
B. Generalisation
C. Dependency ✅
D. Aggregation

Correct Answer: C. Dependency

Explanation

  • Dependency is a weak, temporary use relationship
  • For example, a method parameter of another class type.