Skip to content
ComputerCS
Start learning

Introduction to Software Development · Lesson 1.5

Graphical Representation of Software Systems (UML)

Learn why teams model systems visually and how use-case, class, activity and sequence diagrams communicate actors, structure, workflow and interactions.

01

Learning objectives

  • Explain the purpose of modelling before implementation.
  • Identify actors, use cases, classes, attributes, operations and relationships.
  • Read basic activity and sequence diagrams.
  • Choose a diagram type that answers a specific design question.
02

Lesson notes

A model is a simplified representation of a system created to answer a question. It omits detail that is not relevant to the question. A diagram can help stakeholders discuss requirements, help developers agree on responsibilities and expose missing cases before code is written. UML (Unified Modeling Language) is a standard family of visual notations used to describe software systems.

A use-case diagram focuses on external actors and the goals they achieve through a system. In a school portal, a Student may view results and enrol in a course, while an Administrator may manage accounts. A use case describes a user-visible goal, not a tiny internal program step.

A class diagram describes static structure. A class has a name, attributes and operations. Relationships may show association, inheritance or composition. For example, a Student can enrol in multiple Courses; the multiplicity at each end communicates how many objects can participate. A sequence diagram instead shows messages between participants over time.

An activity diagram shows workflow and decisions, such as validating a form and branching to success or error. A sequence diagram shows the order of messages for one scenario, such as a browser sending login credentials to a server which queries an identity service. Diagrams are useful only when they remain consistent with the actual requirements and are kept up to date.

03

Worked code examples

Worked example

This simple ordered workflow can be drawn as an activity diagram. A real diagram would also show the invalid-input branch.

workflow = ["Enter details", "Validate form", "Save record", "Show confirmation"]
for step, action in enumerate(workflow, start=1):
    print(step, action)
Output
1 Enter details
2 Validate form
3 Save record
4 Show confirmation
04

Key terminology

UML

A standard visual language for modelling software structure and behaviour.

Actor

An external role or system interacting with the software.

Use case

A goal an actor achieves with the help of the system.

Multiplicity

A notation describing how many objects may participate in a relationship.

05

Common misconceptions

Common mistake

A use-case diagram shows every line of source code.

Correct understanding

Use-case diagrams show actors and user goals, not implementation detail.

Common mistake

Every UML diagram explains the same thing.

Correct understanding

Different diagrams answer different questions: requirements, structure, workflow or message order.

06

Check your understanding

1. Which diagram best shows an external user goal?

2. Which diagram is most suited to showing messages exchanged over time?

3. In a class diagram, attributes describe:

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.