Which relationship line to use in a UML class diagram?

In a UML class diagram I want to show the relationship between two classes where the second class is the type of a class variable in the first.

I've looked here but am still unsure which relationship I should be using.

I think it may be the Dependency relationship but I am unsure.

Which should I be using?

Answers


It sounds like a composition(has a) but would need to hear more about your diagram.


Need Your Help

Play2 Scala - Global cannot be cast to play.GlobalSettings

playframework playframework-2.0 akka

I've tried to create a Global object in app/Global.scala to run an Akka scheduler, like some other SO post was saying.

Is it fundamentally wrong to write a CPU intensive client side HTML5 application?

javascript html5 web-worker

It is possible and sensible to plan on writing a client side HTML5 Application that will be doing some CPU intensive calculations? (Image processing)