[ Team LiB ] |
![]() ![]() |
ResponsibilitiesOften, it's handy to show responsibilities (page 63) on a class in a class diagram. The best way to show them is as comment strings in their own compartment in the class (Figure 5.1). You can name the compartment, if you wish, but I usually don't, as there's rarely any potential for confusion. Figure 5.1. Showing responsibilities in a class diagram
![]() |
[ Team LiB ] |
![]() ![]() |