- Perspectives: external (context), interaction, structural, behavioral.
- Key UML diagrams: activity, use case, sequence, class, state.
- Context model: shows the system boundary and the other systems around it.
- Use case: a task an actor performs with the system; stick-figure actors and ovals.
- Sequence diagram: objects across the top, lifelines down, messages in time order.
- Class diagram: classes (name, attributes, operations) and the relationships between them.
- <<include>>: the base use case ALWAYS uses the included one. <<extend>>: optional behaviour that extends the base under a condition.
🎯 How this can come up · 2 questions
"Print receipt" happens only if the customer asks. Relative to "Withdraw cash" it is:
Correct: <<extend>>.
Every "Withdraw cash" must "Authenticate user". This is:
Correct: <<include>>.
- Messages: synchronous (filled arrowhead, caller waits), asynchronous (open arrowhead), return (dashed), self-message.
- alt fragment: alternatives with guards; opt: optional; loop: repetition.
- Relationships: dependency (dashed arrow), association (line), generalization (hollow triangle), aggregation (hollow diamond), composition (filled diamond).
- Generalization = inheritance ("is-a"): hollow triangle points to the parent.
- Multiplicity: 1, 0..1, *, 1..* at each end of an association.
🎯 How this can come up · 1 question
A multiplicity of 1..* means:
Correct: One or more.
- Aggregation: whole–part where parts can exist alone (Department–Professor). Composition: parts die with the whole (House–Room).
🎯 How this can come up · 1 question
An Order and its OrderLines (deleted with the order) is best modeled as:
Correct: Composition.
- Association class: attributes that belong to the link itself (Enrollment with grade between Student and Course).
- Activity diagram: workflow of actions; initial node, actions, decisions (diamond), fork/join bars, final node.
- Swimlanes show WHO performs each activity.
- State machine: states an object can be in and the transitions triggered by events [guard] / action.
🎯 How this can come up · 1 question
Which diagram best shows how one object changes state in response to events?
Correct: State machine diagram.
No slides match this filter.















































































































