Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
Visibility
A package is a namespace for its elements. It establishes visibility of its elements. Elements directed owned by packages can have public or private visibility. A package can see only the elements of other packages that have been given public visibility by the package containing them. Elements with private visibility are visible only in the package containing them and any packages nested inside that package.
Visibility also applies to the features of classes (attributes and operations). An element with public visibility can be seen by other classes within the same package or within other packages that can see the class and by descendants of the class. A feature with private visibility can only be seen by its own class. A feature with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access