SlideShare a Scribd company logo
1




UML Knowledge




     Li-Wei Cheng
UML related knowledge - 1
2

       Association
           The most abstract way to describe relationship between classes

           A kind of link between two classes or more

           Any relationship between object of two classes
UML related knowledge - 2
3

       Weak Association (Dependency)
           If class A’s methods include parameter of Class B’s reference, or
            returns reference of Class B, it calls A depends on B.




       Strong Association
           If class A holds class B’s reference, it calls A have strong
            association with B.
UML related knowledge - 3
4

       Aggregation (Association with part/whole relation)
           A part of relationship between Class A (whole) and Class B (part)
           Also called shared association
           Doesn’t state in any way that Class A owns Class B nor that
            there’s a parent-child relationship between the two
UML related knowledge - 4
5

       Composition (Association with strong life cycle relation)
           A strong life cycle dependency between the two, meaning that
            when Class A is deleted then Class B is also deleted as result.
           Also called not shared association.
           Use more specific composition link instead of the aggregation
            link or association link.

More Related Content

PDF
Introduction to AndroidMock
Li-Wei Cheng
 
PDF
Unit testing in android
Li-Wei Cheng
 
PDF
Make Your SW Component Testable
Li-Wei Cheng
 
PDF
Test doubles
Li-Wei Cheng
 
PDF
JUnit
Li-Wei Cheng
 
PDF
What's software testing
Li-Wei Cheng
 
PPTX
OO design principle
Li-Wei Cheng
 
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
 
Introduction to AndroidMock
Li-Wei Cheng
 
Unit testing in android
Li-Wei Cheng
 
Make Your SW Component Testable
Li-Wei Cheng
 
Test doubles
Li-Wei Cheng
 
What's software testing
Li-Wei Cheng
 
OO design principle
Li-Wei Cheng
 
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
 

Recently uploaded (20)

PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
This slide provides an overview Technology
mineshkharadi333
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Ad
Ad

UML knowledge

  • 1. 1 UML Knowledge Li-Wei Cheng
  • 2. UML related knowledge - 1 2  Association  The most abstract way to describe relationship between classes  A kind of link between two classes or more  Any relationship between object of two classes
  • 3. UML related knowledge - 2 3  Weak Association (Dependency)  If class A’s methods include parameter of Class B’s reference, or returns reference of Class B, it calls A depends on B.  Strong Association  If class A holds class B’s reference, it calls A have strong association with B.
  • 4. UML related knowledge - 3 4  Aggregation (Association with part/whole relation)  A part of relationship between Class A (whole) and Class B (part)  Also called shared association  Doesn’t state in any way that Class A owns Class B nor that there’s a parent-child relationship between the two
  • 5. UML related knowledge - 4 5  Composition (Association with strong life cycle relation)  A strong life cycle dependency between the two, meaning that when Class A is deleted then Class B is also deleted as result.  Also called not shared association.  Use more specific composition link instead of the aggregation link or association link.

Editor's Notes

  • #5: 因為菱形也有可能是空的 因此在 Static 的圖上有雖然有 Member Field, 但有可能是空的 Aggregation: has a
  • #6: Composition: is a part of (owns a)