|
To implement the relationship "a borrower has many books " we need a class
that can hold a collection of Book objects.
The JADE RootSchema contains a number of collection classes.
We will subclass one of the collection classes, MemberKeyDictionary,
to provide a class that collects Book objects.
Instructions
- Select the
Class tool in the toolbox
and click anywhere in the classes window. A new class symbol is created.
- Overtype the name for the new class NewClass as BookDictionary.
Click outside the new class symbol.
- Double-click the BookDictionary class symbol.
The Class Specification dialog is displayed.
- Complete the Class tab as shown. (Do not click the OK button yet.)
|