Download presentation
Presentation is loading. Please wait.
Published byGilbert Neal Modified over 9 years ago
2
Kia Manoochehri ◦ kiam@knights.ucf.edu kiam@knights.ucf.edu Office Hours: 2:30-4:00 M/W ◦ HEC 308 (The Cave)
3
Class & Sequence Diagrams
4
Each class is divided into three components:
5
Class Name
6
Each class is divided into three components: Class Name Attributes
7
Each class is divided into three components: Class Name Attributes Attributes can be: + Public - Private # Protected
8
Each class is divided into three components: Class Name Attributes Operations
10
Patron
11
# ID_Number : integer +Name : String - Fines : double
12
Patron # ID_Number : integer +Name : String - Fines : double checkFines() payFines()
13
Class diagrams also contain information regarding the relationship between them ◦ Association ◦ Dependency ◦ Generalization
14
Association: A link indicating that two classes need to communicate with one another StudentProfessor
15
Association: A link indicating that two classes need to communicate with one another ◦ Multiplicity: Every professor has 1 or more students StudentProfessor [1…*]
16
Association: A link indicating that two classes need to communicate with one another ◦ Multiplicity: Every professor has 1 or more students ◦ Role Names: Students learn from Professors StudentProfessor learns from teaches
17
Aggregation: “has a” association. Each part exists outside of the whole Shown by using an empty diamond Car Wheel Engine
18
Composition: demonstrates strong ownership, the part cannot exist without the whole and vice versa Shown by using a filled diamond Person Arm Leg
19
Dependency relationship: ◦ Is a semantic relationship between classes because the functionality of one depends on the other Calendar addEvent(p: Party) Party
20
Generalization: connection between a subclass and a superclass People StudentProfessor
21
Sequence diagrams emphasis the time ordering of messages
22
◦ Objects create the “object life line”
23
Messages are shown by a horizontal line between life lines ◦ May include a condition CustomerBank withdraw money
24
A return message is a response from the object CustomerBank withdraw money money
25
The end of an object life line is demonstrated by an X Bank
26
Class & Sequence Diagrams
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.