Search



Advanced

Construct An Attribute

Step 5: Complete!

< Previous (Specialization)

 

Home / Class Diagrams / Construct An Attribute / Step 5: Complete!

You have now added an attribute to a class.  You can see the attribute name in the class you added the attribute to.  If you don’t see the attribute name, make sure Attributes on/off button has been depressed on the toolbar.

Note that the symbol preceeding the attribute name (in this case, a # symbol) is dependent on the Access modifiers set in the first dialog box.

If you have added a new attribute with a simple type and without get/set methods, then your diagram will look like the first example below.  If you have added an attribute with get/set methods, then getAttributeName and/or setAttributeName will appear at the service section like the second example below.  In order to see the Get/Set methods, be sure that the Services on/off button has been depressed on the toolbar.
 


Without Get/Set Methods


With Get/Set Methods