SlideShare a Scribd company logo
1
2
 The class diagram is a static model that shows the
classes and the relationships among classes in the
system.
 Class diagrams illustrates classes, interfaces, and their
associations. They are used for static object modeling.
 A Class diagram gives an overview of a system by
showing its classes and the relationships among them.
 Class diagrams display what interacts but not what
happens when they do interact
3
 The main building block of a class diagram is the class,
which stores and manages information in the system.
 A blueprint that an object made from.
 The class contains two major parts:
• Attributes “data members”.
• Operations “method members”.
4
No arrows; info can
flow in both directions
Aggregation – Order class
contains OrderDetail classes.
Could be composition?
5
6
7
8
9
 Class diagrams are great for:
 discovering related data and attributes
 getting a quick picture of the important entities in a system
 seeing whether you have too few/many classes
 seeing whether the relationships between objects are too
complex, too many in number, simple enough, etc.
 spotting dependencies between one class/object and another
 Not so great for:
 discovering algorithmic (not data-driven) behavior
 finding the flow of steps for objects to solve a given problem
 understanding the app's overall control flow (event-driven? web-
based? sequential? etc.)
10
11
 Draw a class diagram for a information modeling system
for a school.
 School has one or more Departments.
 Department offers one or more Subjects.
 A particular subject will be offered by only one
department.
 Department has instructors and instructors can work
for one or more departments.
 Student can enrol in upto 5 subjects in a School.
 Instructors can teach upto 3 subjects.
 The same subject can be taught by different
instructors.
 Students can be enrolled in more than one school.
12
 School has one or more Departments.
School Department
has1 1..*
 Department offers one or more Subjects.
 A particular subject will be offered by only one department.
Department Subject
offers1 1..*
13
 Department has Instructors and instructors can work
for one or more departments.
assigned to1..*
Instructor Department
1..*
 Student can enrol in upto 5 Subjects.
Student Subject
takes* 0..5
14
 Instructors can teach up to 3 subjects.
 The same subject can be taught by different
instructors.
Instructor Subjects
teaches
1..*
1..3
15
 Students can be enrolled in more than one school.
Student School
member
*
1..*
16
School Department
Student Subject Instructor
1…*
*
member
* 1..5
attends
1..3 1..*
teaches
1..*
1
1 1..*
has
1..*
1..*
assignedTo
offeres
17
 Object Diagram shows the relationship between objects.
 Unlike classes objects have a state.
18
c1: Company
d2: Departmentd1: Department
name=“Sales” name=”CSSE”
p1: Persont
name=“Rao”
p2: Person
name=“Raj”
manager employee
c1: Company
name=“UniMelb”
19
20
21
22
23
24
25
26
27
28
29
30
31

More Related Content

PPT
Uml class Diagram
PPT
Class diagram presentation
PPT
Class diagrams
PPTX
Object diagram
PPTX
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
PPT
Slide 4 Interaction Diagram
PPTX
Diagrams
PPTX
Class Diagram
Uml class Diagram
Class diagram presentation
Class diagrams
Object diagram
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
Slide 4 Interaction Diagram
Diagrams
Class Diagram

What's hot (20)

PPTX
Activity diagram
PPT
Use Case Diagram
PPT
Object Oriented Design in Software Engineering SE12
PPT
PPT
Collaboration Diagram
PPT
Unit 1( modelling concepts & class modeling)
PDF
Collaboration diagram- UML diagram
PDF
Sequence diagram- UML diagram
PDF
SE_Lec 05_System Modelling and Context Model
PPT
UML Diagrams
PPT
Use case Diagram and Sequence Diagram
PPTX
Use case diagram
PPTX
Object oriented methodologies
PPT
Unit 3(advanced state modeling & interaction meodelling)
PPTX
ER MODEL
PPT
Uml diagrams
PPTX
Overview of UML Diagrams
DOC
Case Study Uml
DOCX
Uml Common Mechanism
Activity diagram
Use Case Diagram
Object Oriented Design in Software Engineering SE12
Collaboration Diagram
Unit 1( modelling concepts & class modeling)
Collaboration diagram- UML diagram
Sequence diagram- UML diagram
SE_Lec 05_System Modelling and Context Model
UML Diagrams
Use case Diagram and Sequence Diagram
Use case diagram
Object oriented methodologies
Unit 3(advanced state modeling & interaction meodelling)
ER MODEL
Uml diagrams
Overview of UML Diagrams
Case Study Uml
Uml Common Mechanism
Ad

Viewers also liked (20)

PPTX
class diagram
PPT
Uml class diagram and packages ppt for dot net
PPT
Uml class-diagram
PDF
Smith Chart
PDF
UML basic - Class Diagram
PDF
Analisis Statistika
PPTX
Analysis optimization and monitoring system
PDF
UML TUTORIALS
PPTX
Unit 1- OOAD ppt
PDF
Dsp foehu lec 01 - signals and systems
PDF
SE_Lec 02_Software Life Cycle Models
PDF
SE_Lec 09_ UML Behaviour Diagrams
PDF
SE_Lec 01_ Introduction to Software Enginerring
PDF
SE_Lec 08_UML Use Cases
PDF
SE_Lec 00_ Software Engineering 1
PDF
SE_Lec 03_Requirements Analysis and Specification
PDF
SE_Lec 04_Agile Software Development
PPT
Uml report
PDF
DSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and Systems
class diagram
Uml class diagram and packages ppt for dot net
Uml class-diagram
Smith Chart
UML basic - Class Diagram
Analisis Statistika
Analysis optimization and monitoring system
UML TUTORIALS
Unit 1- OOAD ppt
Dsp foehu lec 01 - signals and systems
SE_Lec 02_Software Life Cycle Models
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 01_ Introduction to Software Enginerring
SE_Lec 08_UML Use Cases
SE_Lec 00_ Software Engineering 1
SE_Lec 03_Requirements Analysis and Specification
SE_Lec 04_Agile Software Development
Uml report
DSP_FOEHU - Lec 02 - Frequency Domain Analysis of Signals and Systems
Ad

Similar to SE_Lec 07_UML CLASS DIAGRAM (20)

PDF
SE18_Lec 08_UML Class Diagram
PPTX
Class Diagrams
DOCX
PPTX
Ch.03 - Class Diagram_1 OBJECT ORIENTED ANALYSIS AND DESIGN [O] .pptx
PPTX
unified modelling language(UML) diagrams
PPTX
OOP_Module 2.pptx
PPTX
UNIT-3 Design Using UML (1).pptx
DOCX
Chapterunifiedmo 3 UML Class Diagram.docx
PPT
Object and class relationships
PPTX
210280107093_CLASS_DIAGRAM.pptx
PPTX
UML DIAGRAMS
PPTX
Basic structural modelling in unified modelling language
PDF
OOM Unit I - III.pdf
PPT
Uml Explained Step ByStep
PDF
Software Testing and UML Lab
PDF
Ooad( class diagram)
PPTX
PDF
Lecture05-Structural Modeling for students.pdf
PPT
Software Engineering1-1-UML.ppt
SE18_Lec 08_UML Class Diagram
Class Diagrams
Ch.03 - Class Diagram_1 OBJECT ORIENTED ANALYSIS AND DESIGN [O] .pptx
unified modelling language(UML) diagrams
OOP_Module 2.pptx
UNIT-3 Design Using UML (1).pptx
Chapterunifiedmo 3 UML Class Diagram.docx
Object and class relationships
210280107093_CLASS_DIAGRAM.pptx
UML DIAGRAMS
Basic structural modelling in unified modelling language
OOM Unit I - III.pdf
Uml Explained Step ByStep
Software Testing and UML Lab
Ooad( class diagram)
Lecture05-Structural Modeling for students.pdf
Software Engineering1-1-UML.ppt

More from Amr E. Mohamed (20)

PDF
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
PDF
Dcs lec03 - z-analysis of discrete time control systems
PDF
Dcs lec02 - z-transform
PDF
Dcs lec01 - introduction to discrete-time control systems
PDF
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
PDF
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
PDF
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
PDF
SE2018_Lec 17_ Coding
PDF
SE2018_Lec-22_-Continuous-Integration-Tools
PDF
SE2018_Lec 21_ Software Configuration Management (SCM)
PDF
SE2018_Lec 18_ Design Principles and Design Patterns
PDF
Selenium - Introduction
PPTX
SE2018_Lec 20_ Test-Driven Development (TDD)
PDF
SE2018_Lec 19_ Software Testing
PDF
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
PDF
DSP_2018_FOEHU - Lec 05 - Digital Filters
PDF
DSP_2018_FOEHU - Lec 04 - The z-Transform
PDF
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
PDF
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
PDF
SE2018_Lec 15_ Software Design
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dcs lec03 - z-analysis of discrete time control systems
Dcs lec02 - z-transform
Dcs lec01 - introduction to discrete-time control systems
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
SE2018_Lec 17_ Coding
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 18_ Design Principles and Design Patterns
Selenium - Introduction
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 19_ Software Testing
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
SE2018_Lec 15_ Software Design

Recently uploaded (20)

PDF
medical staffing services at VALiNTRY
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
top salesforce developer skills in 2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
history of c programming in notes for students .pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
L1 - Introduction to python Backend.pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
ai tools demonstartion for schools and inter college
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPT
Introduction Database Management System for Course Database
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
System and Network Administration Chapter 2
medical staffing services at VALiNTRY
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
ISO 45001 Occupational Health and Safety Management System
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms II-SECS-1021-03
top salesforce developer skills in 2025.pdf
Softaken Excel to vCard Converter Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
history of c programming in notes for students .pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
L1 - Introduction to python Backend.pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Illustrator 28.6 Crack My Vision of Vector Design
ai tools demonstartion for schools and inter college
2025 Textile ERP Trends: SAP, Odoo & Oracle
Introduction Database Management System for Course Database
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
VVF-Customer-Presentation2025-Ver1.9.pptx
System and Network Administration Chapter 2

SE_Lec 07_UML CLASS DIAGRAM

  • 1. 1
  • 2. 2  The class diagram is a static model that shows the classes and the relationships among classes in the system.  Class diagrams illustrates classes, interfaces, and their associations. They are used for static object modeling.  A Class diagram gives an overview of a system by showing its classes and the relationships among them.  Class diagrams display what interacts but not what happens when they do interact
  • 3. 3  The main building block of a class diagram is the class, which stores and manages information in the system.  A blueprint that an object made from.  The class contains two major parts: • Attributes “data members”. • Operations “method members”.
  • 4. 4 No arrows; info can flow in both directions Aggregation – Order class contains OrderDetail classes. Could be composition?
  • 5. 5
  • 6. 6
  • 7. 7
  • 8. 8
  • 9. 9  Class diagrams are great for:  discovering related data and attributes  getting a quick picture of the important entities in a system  seeing whether you have too few/many classes  seeing whether the relationships between objects are too complex, too many in number, simple enough, etc.  spotting dependencies between one class/object and another  Not so great for:  discovering algorithmic (not data-driven) behavior  finding the flow of steps for objects to solve a given problem  understanding the app's overall control flow (event-driven? web- based? sequential? etc.)
  • 10. 10
  • 11. 11  Draw a class diagram for a information modeling system for a school.  School has one or more Departments.  Department offers one or more Subjects.  A particular subject will be offered by only one department.  Department has instructors and instructors can work for one or more departments.  Student can enrol in upto 5 subjects in a School.  Instructors can teach upto 3 subjects.  The same subject can be taught by different instructors.  Students can be enrolled in more than one school.
  • 12. 12  School has one or more Departments. School Department has1 1..*  Department offers one or more Subjects.  A particular subject will be offered by only one department. Department Subject offers1 1..*
  • 13. 13  Department has Instructors and instructors can work for one or more departments. assigned to1..* Instructor Department 1..*  Student can enrol in upto 5 Subjects. Student Subject takes* 0..5
  • 14. 14  Instructors can teach up to 3 subjects.  The same subject can be taught by different instructors. Instructor Subjects teaches 1..* 1..3
  • 15. 15  Students can be enrolled in more than one school. Student School member * 1..*
  • 16. 16 School Department Student Subject Instructor 1…* * member * 1..5 attends 1..3 1..* teaches 1..* 1 1 1..* has 1..* 1..* assignedTo offeres
  • 17. 17  Object Diagram shows the relationship between objects.  Unlike classes objects have a state.
  • 18. 18 c1: Company d2: Departmentd1: Department name=“Sales” name=”CSSE” p1: Persont name=“Rao” p2: Person name=“Raj” manager employee c1: Company name=“UniMelb”
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22
  • 23. 23
  • 24. 24
  • 25. 25
  • 26. 26
  • 27. 27
  • 28. 28
  • 29. 29
  • 30. 30
  • 31. 31