Defining Member Object

Now we can define the Member object. We define all simple attributes as usual and we also define the only reference we can define at this stage – the attribute with the name Loans of the type Loan. This will be the attribute where “Multiple allowed” is checked since a member can have multiple loans. We also create the matching attribute on the Loan object called Member. After we create the Member object we go back to the Loan object and change its automatically created Member attribute to turn off the “Multiple allowed” flag since a loan can refer only to one member.