21.07.2013 Views

Designing Object Model with UML Class Diagram - Visual Paradigm

Designing Object Model with UML Class Diagram - Visual Paradigm

Designing Object Model with UML Class Diagram - Visual Paradigm

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DB-VA Designer’s Guide Chapter 3 – <strong>Designing</strong> <strong>Object</strong> <strong>Model</strong> <strong>with</strong> <strong>UML</strong> <strong>Class</strong> <strong>Diagram</strong><br />

Adding Attribute<br />

An attribute is a property of a class which has a name, a value and also has a type to describe the characteristic of an object.<br />

3-6<br />

1. You can add attribute to the class in one of the three ways:<br />

• Right-click on a class, select Add > Attribute.<br />

2.<br />

Figure 3.10 -<br />

A new attribute is added, type the attribute name and type in the form of "attribute_name: type". You can also edit the<br />

attribute name by double-clicking the attribute name or by pressing the F2 button.<br />

• Click on a class, press the keyboard shortcut - Alt + Shift + A.<br />

• Using <strong>Class</strong> specification dialog:<br />

1. Right-click the class element, click Open Specification....<br />

2. Click the Attributes Tab, then click Add.<br />

Attribute Specification dialog box is displayed, you can modify the attribute name and properties, such as<br />

type.<br />

Figure 3.11 - <strong>Class</strong> Specification dialog

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!