Exclusive Collection
By making the myBooks collection exclusive it becomes very closely
associated with its Borrower object.
In fact, it is a sub-object, which has the following consequences
- You do not need to create the myBooks collection object.
It is automatically created when the Borrower object is created.
- You do not need to delete the myBooks collection object.
It is automatically deleted when the Borrower object is deleted.
- You cannot reassign the myBooks reference to another BookDictionary object.
|