Composition Association Relationships

A composition association is a relationship that represents a "whole/part" relationship. It specifies that the lifetime of the "part" is dependent on the lifetime of the "whole." Composition is a strong form of aggregation.

In a composition association, data typically flows in only one direction—from the whole classifier to the part classifier. For example, composition association connects a "Student" class with a "Schedule" class to indicate that if you remove the student, you must also remove the schedule.


Connector

A composition association appears as a solid line with a filled diamond at the association end connected to the classifier representing the composite, or "whole."


Naming Conventions

You can name any association to describe the nature of the relationship between the two classifiers; however, names are typically not needed, especially if you use association end names.


Related Topics



Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/dotnet/relation/Composition.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>