Instructions
- In the Browser, right-click the Book class and select
New Attribute from the popup menu.
- Overtype «const» Available as the name for the constant attribute.
- Double-click the «const» Available constant attribute.
The Constant Specification dialog is displayed.
- Complete the dialog as shown and click the OK button.
- Add another constant called OnLoan with an integer value of 1.
|
A class constant in JADE corresponds to an attribute with the
«const» stereotype in Rational Rose.
The constant must also be given a value.
For the Book class, we will define two integer constants relating
to a book's loan status.

|