UML Modeling Techniques > Class modeling > Class nesting (includes data types, interfaces and signals) > Scoping a class to another class (includes data types, interfaces and signals)
Scoping a class to another class (includes data types, interfaces and signals)
You can scope a Class, Data Type, Interface and Signal to a Class, Data Type, Interface or Signal as follows:
A Class can own other Classes, Data Types, Interfaces and Signals.
A Data Type cannot own other Data Types, Classes, Interfaces or Signals.
An Interface can own other Interfaces, Classes, Data Types and Signals.
A Signal can own other Signals and Classes.
To scope classes, data types, interfaces and signals to a class, data type, interface or signal through the packages pane:
1. In the Packages pane, select the Classes, Data Types, Interfaces and Signals you want to scope to another Class, Interface or Signal.
* 
You can select multiple Classes and Signals in the Contents pane.
2. Drag the selected items to the scoping Class, Interface or Signal.
* 
If during a drag-and-drop operation you hover over a Modeler pane, that pane will get the focus.
If during a drag-and-drop operation you hover over an expand symbol, the item will expand.
To scope a class, data type, interface and signal to another class, interface or signal through the class diagram:
1. On the Class Diagram tab, click the Nesting Link button.
2. Click the scoping Class, Interface or Signal.
3. Click the Class, Data Type, Interface or Signal you want to scope.
Was this helpful?