Association classes in UML diagrams - IBM

文章推薦指數: 80 %
投票人數:10人

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



請為這篇文章評分?