The UML provides a rich notation to describe features of class and interface members, such as visibility, initial values, and so on. An example is shown in Figure 19.12.
If no explicit visibility marker is shown for an attribute or method, what is the default? Answer: there isn't a default. If none is shown, it implies “not specified” in the UML. However, there is a common convention to assume that attributes are private and methods public, unless otherwise noted.
The current iteration of the NextGen POS design class diagram (see Figure 19.13) does not have many interesting member details; all attributes are private and all methods public.
A method body can be shown as illustrated in Figure 19.14 in both a DCD and an interaction diagram.
18.119.19.174