Previous Section  < Free Open Study >  Next Section

7.3 Association Implemented Through a Third-Party Class

As an example of the second method for implementing associations梪sing a third-party association class as opposed to a referential attribute梒onsider the companies for which a person has worked in the past. This might be the type of information one would find on a person's resume. If this one-to-many association were implemented as a referential attribute, then the attribute would need to be a list. An easier implementation is to create a separate third-party object for each company for which a person has worked (see Figure 7.3). These objects are instantiated from a third-party association class, which usually gets the name of the association as its name. Association classes are typically a collection of referential attributes that refer to the classes involved in the association.

Figure 7.3. Implementing associations through third-party classes.


Again, associations that are not capturing uses relationships always imply that some third party wishes to use the association in an indirect uses relationship. The third party was created due to some distribution of system intelligence requirement in a particular domain.

    Previous Section  < Free Open Study >  Next Section