SlideShare a Scribd company logo
1 of 27
Download to read offline
UML CLASS DIAGRAMS
ARE AWESOME
THEY’RE SIMPLE
AND EASY TO MAKE
ALL YOU NEED ARE
RECTANGLES AND ARROWS
UP TO 3 RECTANGLES
CAN REPRESENT A CLASS
PUT YOUR CLASS NAME
IN THE FIRST RECTANGLE
MyClass
YOUR VARIABLES
IN THE SECOND RECTANGLE
MyClass
myVariable: String
AND YOUR METHODS
IN THE THIRD RECTANGLE
MyClass
myMethod(): String
myVariable: String
YOU CAN ASSOCIATE
A CLASS TO ANOTHER
WITH A DASHED OPEN ARROW
MyClass
myVariable: MyOtherClass
myMethod(): String
MyOtherClass
myVariable: String
anotherMethod()
<< uses >>
YOU CAN
INHERIT
FROM A CLASS
WITH A CLOSED
ARROW
MyChild
myVariable: String
myMethod()
MyParent
myMethod()
DO YOU
REALLY NEED
TO INHERIT
FROM A CLASS?
!
REALLY?
CAN’T YOU JUST USE AN
ASSOCIATION INSTEAD?
ALWAYS FAVOR
ASSOCIATION
OVER
INHERITANCE
BUT WHEN YOU DO USE
INHERITANCE, REMEMBER…
THE RELATION IS NOT “IS A”
BUT “CAN REPLACE”
DON’T USE POLYMORPHISM
TO CHANGE STRUCTURE!
USE IT TO CHANGE BEHAVIOR
WITH GREAT POWER
COMES GREAT
RESPONSIBILITIES
GREAT UML
CLASS DIAGRAMS …
ARE SHORT
THEY COMMUNICATE
A SINGLE
AND IMPORTANT
CONCEPT
THEY ARE NOT DETAILED
PROGRAMMING
INSTRUCTIONS
WORRY ABOUT
COMMUNICATION
LET THE PROGRAMMER
FILL IN THE DETAILS
ALWAYS INCLUDE A LITTLE TEXT
EXPLAINING WHAT YOU WANT
TO COMMUNICATE
AND ALWAYS KEEP IN MIND…
UML DOES NOT COMPILE
UML DOES NOT CRASH
GOOD LUCK
MODELLING SOFTWARE

More Related Content

What's hot

5.1 Finding Slope
5.1 Finding Slope5.1 Finding Slope
5.1 Finding Slope
guest7985b1
 
February 10, 2014
February 10, 2014February 10, 2014
February 10, 2014
khyps13
 
Graphing sytems inequalities
Graphing sytems inequalitiesGraphing sytems inequalities
Graphing sytems inequalities
Jessica Garcia
 
Solving Systems by Graphing
Solving Systems by GraphingSolving Systems by Graphing
Solving Systems by Graphing
Bitsy Griffin
 
Solving linear equations in two
Solving linear equations in twoSolving linear equations in two
Solving linear equations in two
mstf mstf
 
February 17 2015
February 17 2015February 17 2015
February 17 2015
khyps13
 
Parallel and perpendicular lines
Parallel and perpendicular linesParallel and perpendicular lines
Parallel and perpendicular lines
Jessica Garcia
 
Feb. 4, 2014
Feb. 4, 2014Feb. 4, 2014
Feb. 4, 2014
khyps13
 
January 16, 2014
January 16, 2014January 16, 2014
January 16, 2014
khyps13
 
Parallel and Perpendicular lines
Parallel and Perpendicular linesParallel and Perpendicular lines
Parallel and Perpendicular lines
toni dimella
 

What's hot (19)

Monjir ul-morsalin- 171-15-9421
Monjir ul-morsalin- 171-15-9421Monjir ul-morsalin- 171-15-9421
Monjir ul-morsalin- 171-15-9421
 
5.1 Finding Slope
5.1 Finding Slope5.1 Finding Slope
5.1 Finding Slope
 
February 10, 2014
February 10, 2014February 10, 2014
February 10, 2014
 
Inverse of a Matrix
Inverse of a MatrixInverse of a Matrix
Inverse of a Matrix
 
Divergent series+english 1+2+3+4+....= 1/12
Divergent series+english 1+2+3+4+....= 1/12Divergent series+english 1+2+3+4+....= 1/12
Divergent series+english 1+2+3+4+....= 1/12
 
Graphing sytems inequalities
Graphing sytems inequalitiesGraphing sytems inequalities
Graphing sytems inequalities
 
3 handouts section3-11
3 handouts section3-113 handouts section3-11
3 handouts section3-11
 
Graphing sytems inequalities
Graphing sytems inequalitiesGraphing sytems inequalities
Graphing sytems inequalities
 
Solving Systems by Graphing
Solving Systems by GraphingSolving Systems by Graphing
Solving Systems by Graphing
 
Solving linear equations in two
Solving linear equations in twoSolving linear equations in two
Solving linear equations in two
 
How to
How toHow to
How to
 
Rank of a matrix
Rank of a matrixRank of a matrix
Rank of a matrix
 
Properties of determinations
Properties of determinationsProperties of determinations
Properties of determinations
 
February 17 2015
February 17 2015February 17 2015
February 17 2015
 
Parallel and perpendicular lines
Parallel and perpendicular linesParallel and perpendicular lines
Parallel and perpendicular lines
 
Lesson 1B - Graphs and equality
Lesson 1B -  Graphs and equalityLesson 1B -  Graphs and equality
Lesson 1B - Graphs and equality
 
Feb. 4, 2014
Feb. 4, 2014Feb. 4, 2014
Feb. 4, 2014
 
January 16, 2014
January 16, 2014January 16, 2014
January 16, 2014
 
Parallel and Perpendicular lines
Parallel and Perpendicular linesParallel and Perpendicular lines
Parallel and Perpendicular lines
 

More from Luc Trudeau

More from Luc Trudeau (11)

Revue de l'année 2019 dans le monde des codecs videos
Revue de l'année 2019 dans le monde des codecs videosRevue de l'année 2019 dans le monde des codecs videos
Revue de l'année 2019 dans le monde des codecs videos
 
I don’t care if you have 360 Intra directional predictors
I don’t care if you have 360 Intra directional predictorsI don’t care if you have 360 Intra directional predictors
I don’t care if you have 360 Intra directional predictors
 
Les technologies actuelles et futures de l'ott
Les technologies actuelles et futures de l'ottLes technologies actuelles et futures de l'ott
Les technologies actuelles et futures de l'ott
 
Chroma from Luma Intra Prediction for AV1
Chroma from Luma Intra Prediction for AV1Chroma from Luma Intra Prediction for AV1
Chroma from Luma Intra Prediction for AV1
 
Chroma From Luma Status Update
Chroma From Luma Status UpdateChroma From Luma Status Update
Chroma From Luma Status Update
 
ML2 et le Codetributhon
ML2 et le CodetributhonML2 et le Codetributhon
ML2 et le Codetributhon
 
HTTP Long Polling is awesome
HTTP Long Polling is awesomeHTTP Long Polling is awesome
HTTP Long Polling is awesome
 
Inverting Dependencies
Inverting DependenciesInverting Dependencies
Inverting Dependencies
 
Orchestre de services
Orchestre de servicesOrchestre de services
Orchestre de services
 
HTTP et REST
HTTP et RESTHTTP et REST
HTTP et REST
 
Architecture vs Design
Architecture vs DesignArchitecture vs Design
Architecture vs Design
 

Recently uploaded

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Recently uploaded (20)

Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

UML Class Diagrams are Awesome