Lecture2 Class Diagrams
Lecture2 Class Diagrams
3
1
5 2
Part1 PartN
● One Whole is associated with 5 Part1 ● One Whole is associated with 2 PartN
● One Part1 is associated with 1 Whole ● One PartN is associated with 3 Whole
P
P W
P
W P P W
P W P
P
W W
P
32
Multiplicity Example #2
Class1
max. 1 2..5
min.
1..n
0..*
Class2 Class3
1..n * C3 2..5 C1
C2 1 C1
C3
C1
C2 C3 C1
C2 C1 C3
C1 C2 C1
C3
C2 C1
C3
C2
etc... etc...
33
Multiplicity Example #3
FacultyInformation StudentInformation
1 0..* 1 1 1
1..* 0..*
0..*
DegreeHeld CommitteeAssign
CourseCompleted
0..* 0..*
CourseTeach ClubMember
34
StudentInformation CourseInformation
0..*
attributes attributes
operations 0..* operations
1 1
0..* 0..*
StudentCourseInformation StudentCourseInformation
SemesterTaken SemesterTaken
GradeEarned GradeEarned
operations operations
35
Reflexive Association Relationships
Objects within the same class have a
relationship with each other.
Course
0..*
is pre-requisite for
0..*
has pre-requisite of
36
Video Store – UML Class Diagram
1 1
Inventory
SaleItem RentalItem
0..* 0..*
Transaction Employee StoreLocation
1 1
37
38
39
40