0

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?

Rob Hruska
  • 118,520
  • 32
  • 167
  • 192
Chris
  • 3,036
  • 5
  • 36
  • 53

1 Answers1

1

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

Nix
  • 57,072
  • 29
  • 149
  • 198