uc 11 - yshehab/SchoolRoomBooking GitHub Wiki
Collection <Members> getMembers(Organization anOrganization)
Given: The Organization object, organization14
- Access the collection of Member objects linked to organization14, which in this case is {member4, member36, member67}.
- Return {member4, member36, member67}
An Organization object should always be linked to at least one Member object. If a Letting object is not linked to any Organization objects then an empty collection should be returned.
None
None
Collection<Member> members
Collection <Member> getMembers()
Post-Condition: returns a collection of all the linked Member objects
void addMember(Member aMember)
Post-Condition: a reference is recorded to aMember
None
Collection<Member> getMembers(Organization anOrganization)
Post-Condition: returns a collection of all Member objects linked to anOrganazation
None
None