Use when you need to show WHO (actors) can do WHAT (use cases) with the system. Perfect for capturing functional requirements and system boundaries.
Example Use Case diagram (ATM system) from the course slides.
Use to show the STRUCTURE of the system - classes, their attributes, methods, and relationships. Essential for object-oriented design.
Example UML Class diagram (Bank / ATM / Account) from the course slides.
+ public
- private
# protected
~ package
Use to show HOW objects interact over TIME. Perfect for modeling the flow of messages in a specific scenario.
Example Sequence diagram (View patient information) from the course slides.
Use to show WORKFLOW or PROCESS FLOW. Like an advanced flowchart with parallel activities and swimlanes.
Example Activity diagram (Reservation process) from the course slides.
Use to show how an object changes STATES in response to EVENTS. Perfect for modeling lifecycle of objects.
Example State diagram from the course slides.