In UML diagrams, you can
set the visibility property for an attribute or an operation to specify
whether it is accessible to other elements outside of its container.
Before you begin
Before you can complete this task,
you must have an open diagram that contains a classifier with an attribute,
operation, or combination of both. Also, the classifier's attribute
and operation list compartments must be visible. Ensure that you have
not set preferences to filter or hide attributes and operations.
About this task
To set the visibility
property for an attribute or operation:
Procedure
In the diagram editor, right-click an attribute or an operation;
then click Visibility and select one of the
following options:- Public
- Protected
- Private
- Package
What to do next
Tip: You can also set the visibility for a selected
attribute or operation in the Properties view
on the General page.