UML Modeling Techniques > Class modeling > Attributes > Creating an attribute
Creating an attribute
You can create an Attribute through a Class Diagram or a Modeler pane.
For information about creating a Part or Port, which may be an Attribute, click here
To create an attribute through a class diagram:
1. On the Class Diagram tab, click the Attribute button.
2. Click the item that is to own the Attribute, that is, a Class, Data Type, Interface or Signal.
3. Type the name of the Attribute, and then press the Enter key.
To create an attribute through a Modeler pane:
1. In a Modeler pane, locate the item that is to own the Attribute, that is, a Class, Data Type, Interface, Signal, Package or the Model.
2. Right-click the owning item, and select New > Attribute.
or
Select New > UML > Structure > Attribute.
3. Type the name of the Attribute, and then press the Enter key.