Packages and Namespaces - Packages and Visibility - Package Member Visibility

8 important questions on Packages and Namespaces - Packages and Visibility - Package Member Visibility

In all the representations of Packages and their members shown above, we can precede the member name with a visibility indicator.

The allowed visibility adornment is based on the visibility adornments allowed on the members of a ...?

Class
Report

The visibility signs immediately precede the member name, usually after any  ...?

The visibility signs immediately precede the member name, usually after any stereotype.

We demonstrate this in Fig. 8.7, showing how it works with the three alternative member depiction approaches (physically placed inside, member list, or  approaches).

 
Report

Which Visibility Notations are there in packages?

Visibility Notation in Packages
Report

What is the  Visibility Notation :  Public   +   ?


A member with public visibility is visible to all elements that can access the contents of the Package (or Namespace) that owns it
Report

What is the  Visibility Notation :  Package   ~  ?


A member with Package visibility is visible within the nearest enclosing Package (given that any intermediate owning Elements have proper visibility). Outside the nearest enclosing Package, a NamedElement marked as having Package visibility is not visible


Not allowed on Packages or Elements directly owned by Packages


Report

What is the  Visibility Notation :  Protected   #  ?

A member with protected visibility is visible to Elements that have a generalization relationship to the Namespace that owns it


Not allowed on Packages or Elements directly owned by Packages.
Packages do not support generalization/specializations
Report


Which two Visiblitys are  Not allowed on Packages or Elements directly owned by Packages ?

- Package
- Protected
Report

The interplay of the UML visibility notation in Packages is sometimes difficult to follow.

Consider Fig. 8.8 and the associated Table 8.2.

Try to read this figure

Visibility of Package Elements

It is easy to construct complicated visibility situations.

Table 8.2 illustrates the scope of visibility for some typical examples.
Report

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart