Академический Документы
Профессиональный Документы
Культура Документы
1 2
Notes Notes
One-to-one
Exactly one - 1
One-to-many
One-to-one or more
Many - 0..* or *
One-to-zero or one
3 4
1
Employee
manager
Responsible worker
for 0..10
5 6
Association - Multiplicity Class Relationships
Association
A player can play only for one Team.
Generalization
The captain leads the team members.
Realization
Team
Member
Captain
1
Dependency
0..1
Player Team
10
11 member of 1
Captain
1
Leads
7 8
SuperClass
GraphicCircle
SubClass1 SubClass2
9 10
11 12
Abstract class and method
Abstract Methods (Operations)
Implementation
public abstract class Shape {
Shape public abstract draw(); //declare
draw() without implementation
………
}
Association
Generalization
Realization
Keyboard Keyboard
15 16
Association
}
Generalization
public class KeyBoard implements TypeWriter {
Realization
public void keyStroke(){
………
Dependency
}
}
17 18
Dependency Dependency cont
Circle
Point
Move(p:Point) <<
ins
t an
ce
Of circleB:Circle
>>
19 20
1..* *
Instructor Subjects Student School
teaches 1..3 member 1..*
25 26
School Department
* 1..* 1..*
27 28
manager employee