Mapping Friends between Classes in UML

I have two classes A and B, where B is friend A.

How to show it in UML?

Is it possible to show this using a dependency relationship, and then add a comment to the relationship as shown below?

<<Friend>> 

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

+8
friend uml
source share
1 answer

Yes, that’s absolutely true. For my own questions about UML, I found this site particularly useful.

+8
source share

All Articles