Depicting friend relationship between classes in UML
13,469
Yes, that's perfectly valid. For my own questions about UML, I found this website particularly helpful.
Related videos on Youtube
![Arun](https://i.stack.imgur.com/2KGux.jpg?s=256&g=1)
Author by
Arun
Updated on July 06, 2022Comments
-
Arun almost 2 years
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
-
Jordi Cabot about 12 yearsWhat does it mean that a class is a friend of another? The semantics of this "relationship" would influence how it is represented
-