Association classes in UML diagrams - IBM
文章推薦指數: 80 %
In UML diagrams, an association class is a class that is part of an association relationship between two other classes. Associationclasses InUMLdiagrams,anassociation classisaclassthatispartofanassociationrelationshipbetween twootherclasses.Youcanattachanassociationclasstoanassociationrelationship toprovideadditionalinformationabouttherelationship.Anassociation classisidenticaltootherclassesandcancontainoperations,attributes, aswellasotherassociations. Forexample,aclasscalledStudentrepresentsastudentandhas anassociationwithaclasscalledCourse,whichrepresentsaneducational course.TheStudentclasscanenrollinacourse.Anassociationclass calledEnrollmentfurtherdefinestherelationshipbetweentheStudent andCourseclassesbyprovidingsection,grade,andsemesterinformation relatedtotheassociationrelationship. Asthefollowingfigureillustrates,anassociationclassisconnected toanassociationbyadottedline. Relatedtasks Specifyingrelationshipsindiagrams Relatedreference Relationshiptypes Feedback
延伸文章資訊
- 1I don't understand association class - UML class diagram
An association class is both a class and a relation, when you implement it in a language like C++...
- 2UML Association - Javatpoint
Association is the semantic relationship between classes that shows how one instance is connected...
- 3Association Class | Enterprise Architect User Guide
An Association Class is a UML construct that enables an Association to have attributes and operat...
- 4Association - UML Diagrams.org
- 5UML Association vs Aggregation vs Composition
If two classes in a model need to communicate with each other, there must be a link between them,...