15

I have two classes A and B where B is a friend of A.

How to show this in UML ?

Is it ok to show it using dependency relation and then adding a comment on the relation like below ?

  <<Friend>>

B ------------------> A

Arun
  • 3,138
  • 4
  • 30
  • 41
  • 1
    What does it mean that a class is a friend of another? The semantics of this "relationship" would influence how it is represented – Jordi Cabot Jun 12 '12 at 19:07

1 Answers1

11

Yes, that's perfectly valid. For my own questions about UML, I found this website particularly helpful.

Gnosophilon
  • 1,340
  • 7
  • 24