SlideShare a Scribd company logo
Start with the Name of 
ALLAH(j) 
Who is most Gracious and Merciful
Name: Sayed Farhan Ali Shah 
Roll No: 39 
Subject: Introduction to Software Development 
Department: I.T Computer Science 
Institute: Shah Adbul Latif University Khairpur Sindh 
Pakistan
Class diagram presentation
Class Diagram 
 Used for describing structure and behavior 
in the use cases 
 Provide a conceptual model of the system in 
terms of entities and their relationships
Class is represented with boxes 
which contain three parts: 
Name 
Attributes 
Operations
NAME 
The top part contains the name of the class. It is 
printed in Bold, centered and the first letter 
capitalized. 
ATTRIBUTES 
The middle part contains the attributes of the class. 
They are left aligned and the first letter is lower case. 
OPERATIONS 
The bottom part gives the methods or operations the 
class can take or undertake. They are also left 
aligned and the first letter is lower case.
Modifiers are used to indicate 
visibility of attributes and operations. 
‘+’ is used to denote Public visibility (everyone) 
‘#’ is used to denote Protected visibility (friends and 
derived) 
‘-’ is used to denote Private visibility (no one) 
 By default, attributes are hidden and operations 
are visible. 
 The last two compartments may be omitted to 
simplify the class diagrams
An example of Class 
Account_Name 
- Customer Name 
- Balance 
+add Funds( ) 
+with Draw( ) 
+transfer( ) 
Name 
Attributes 
Operations
There are two kinds of Relationships 
 Generalization (parent-child relationship) 
 Association (student enrolls in course) 
Associations can be further classified as 
 Aggregation 
 Composition
Generalization 
 Generalization expresses a parent/child 
relationship among related classes. 
 Used for abstracting details in several layers 
Super type 
Subtype1 Subtype2 
Example
Association 
Associations represent relationships between instances 
of classes . 
An association is a link connecting two classes. 
Bi-directional association 
Associations are assumed to be bi-directional 
e.g. Flight and plane 
notation: 
Uni-directional association 
e.g. Order and item 
notation:
Composition 
 Composition: expresses a relationship among 
instances 
of related classes. It is a specific kind of Whole-Part 
relationship 
 It expresses a relationship where an instance of the 
Whole-class has the responsibility to create and initialize 
instances of each Part-class.
1 2 
Automobile 
Engine Transmission 
Example of Composition 
Person 
Legs Hands
Aggregation 
 Aggregation: expresses a relationship among 
instances of related classes. It is a specific kind of 
Container Containee relationship. 
 It expresses a relationship where an instance of the 
Container-class has the responsibility to hold and 
maintain instances of each Containee-class that have 
been created 
outside the auspices of the Container-class.
Example of Aggregation 
Bag 
Books Apples
Thank 
You
Ad

More Related Content

What's hot (20)

Class Diagram
Class DiagramClass Diagram
Class Diagram
Rana_brothers
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
ASHOK KUMAR PALAKI
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
Nadia_Nazeer
 
Class diagram
Class diagramClass diagram
Class diagram
Praneeth Yadav
 
Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot net
mekhap
 
UML Class Diagram Notation
UML Class Diagram NotationUML Class Diagram Notation
UML Class Diagram Notation
adnan12345678
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
Manoj Reddy
 
Object diagram
Object diagramObject diagram
Object diagram
Rahul Pola
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
Satyamevjayte Haxor
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
Shruti Dalela
 
Uml
UmlUml
Uml
Vishwa Mohan
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class Diagram
Niloy Rocker
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
Gobinath Subramaniam
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
LOKENDRA PRAJAPATI
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
Class diagram
Class diagramClass diagram
Class diagram
SESP123
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
Mahesh Bhalerao
 
UML
UMLUML
UML
iQra Rafaqat
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
Haitham El-Ghareeb
 
3 Tier Architecture
3 Tier Architecture3 Tier Architecture
3 Tier Architecture
guestd0cc01
 

Similar to Class diagram presentation (20)

Chapter3
Chapter3Chapter3
Chapter3
Dang Tuan
 
Lecture12 software design class diagram
Lecture12 software design class diagramLecture12 software design class diagram
Lecture12 software design class diagram
Shahid Riaz
 
class Diagram.ppt
class Diagram.pptclass Diagram.ppt
class Diagram.ppt
usama537223
 
UML Diagrams: Class Diagrams in Software Engineering
UML Diagrams: Class Diagrams in Software EngineeringUML Diagrams: Class Diagrams in Software Engineering
UML Diagrams: Class Diagrams in Software Engineering
NabeelRehman21
 
Introduction to UML, a guide to learn.pdf
Introduction to UML, a guide to learn.pdfIntroduction to UML, a guide to learn.pdf
Introduction to UML, a guide to learn.pdf
TARGARYEN001
 
Css uml
Css umlCss uml
Css uml
suman Aggarwal
 
2 class use case
2 class use case2 class use case
2 class use case
Minal Maniar
 
Descriptions of class diagrams in software
Descriptions of class diagrams in softwareDescriptions of class diagrams in software
Descriptions of class diagrams in software
ssuser9d62d6
 
Object oriented programming in C++ programming language
Object oriented programming in C++ programming languageObject oriented programming in C++ programming language
Object oriented programming in C++ programming language
SurindraKumar
 
Introduction to software engineering in data science.ppt
Introduction to software engineering in data science.pptIntroduction to software engineering in data science.ppt
Introduction to software engineering in data science.ppt
SurindraKumar
 
Object oriented programming language in software engineering
Object oriented programming language in software engineeringObject oriented programming language in software engineering
Object oriented programming language in software engineering
SurindraKumar
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
Raj Thilak S
 
Uml report
Uml reportUml report
Uml report
Franco Valdez
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
kebsterz
 
210280107093_CLASS_DIAGRAM.pptx
210280107093_CLASS_DIAGRAM.pptx210280107093_CLASS_DIAGRAM.pptx
210280107093_CLASS_DIAGRAM.pptx
HimeshNayi
 
Relations Class Diagram
Relations Class DiagramRelations Class Diagram
Relations Class Diagram
halwal
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Aravinth NSP
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Sudarsun Santhiappan
 
Chapterunifiedmo 3 UML Class Diagram.docx
Chapterunifiedmo 3 UML Class Diagram.docxChapterunifiedmo 3 UML Class Diagram.docx
Chapterunifiedmo 3 UML Class Diagram.docx
MohammedNouh7
 
UML Overview and Introduction functions.pdf
UML Overview and Introduction functions.pdfUML Overview and Introduction functions.pdf
UML Overview and Introduction functions.pdf
prathipaceec
 
Lecture12 software design class diagram
Lecture12 software design class diagramLecture12 software design class diagram
Lecture12 software design class diagram
Shahid Riaz
 
class Diagram.ppt
class Diagram.pptclass Diagram.ppt
class Diagram.ppt
usama537223
 
UML Diagrams: Class Diagrams in Software Engineering
UML Diagrams: Class Diagrams in Software EngineeringUML Diagrams: Class Diagrams in Software Engineering
UML Diagrams: Class Diagrams in Software Engineering
NabeelRehman21
 
Introduction to UML, a guide to learn.pdf
Introduction to UML, a guide to learn.pdfIntroduction to UML, a guide to learn.pdf
Introduction to UML, a guide to learn.pdf
TARGARYEN001
 
Descriptions of class diagrams in software
Descriptions of class diagrams in softwareDescriptions of class diagrams in software
Descriptions of class diagrams in software
ssuser9d62d6
 
Object oriented programming in C++ programming language
Object oriented programming in C++ programming languageObject oriented programming in C++ programming language
Object oriented programming in C++ programming language
SurindraKumar
 
Introduction to software engineering in data science.ppt
Introduction to software engineering in data science.pptIntroduction to software engineering in data science.ppt
Introduction to software engineering in data science.ppt
SurindraKumar
 
Object oriented programming language in software engineering
Object oriented programming language in software engineeringObject oriented programming language in software engineering
Object oriented programming language in software engineering
SurindraKumar
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
kebsterz
 
210280107093_CLASS_DIAGRAM.pptx
210280107093_CLASS_DIAGRAM.pptx210280107093_CLASS_DIAGRAM.pptx
210280107093_CLASS_DIAGRAM.pptx
HimeshNayi
 
Relations Class Diagram
Relations Class DiagramRelations Class Diagram
Relations Class Diagram
halwal
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Aravinth NSP
 
Chapterunifiedmo 3 UML Class Diagram.docx
Chapterunifiedmo 3 UML Class Diagram.docxChapterunifiedmo 3 UML Class Diagram.docx
Chapterunifiedmo 3 UML Class Diagram.docx
MohammedNouh7
 
UML Overview and Introduction functions.pdf
UML Overview and Introduction functions.pdfUML Overview and Introduction functions.pdf
UML Overview and Introduction functions.pdf
prathipaceec
 
Ad

Recently uploaded (20)

Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Ad

Class diagram presentation

  • 1. Start with the Name of ALLAH(j) Who is most Gracious and Merciful
  • 2. Name: Sayed Farhan Ali Shah Roll No: 39 Subject: Introduction to Software Development Department: I.T Computer Science Institute: Shah Adbul Latif University Khairpur Sindh Pakistan
  • 4. Class Diagram  Used for describing structure and behavior in the use cases  Provide a conceptual model of the system in terms of entities and their relationships
  • 5. Class is represented with boxes which contain three parts: Name Attributes Operations
  • 6. NAME The top part contains the name of the class. It is printed in Bold, centered and the first letter capitalized. ATTRIBUTES The middle part contains the attributes of the class. They are left aligned and the first letter is lower case. OPERATIONS The bottom part gives the methods or operations the class can take or undertake. They are also left aligned and the first letter is lower case.
  • 7. Modifiers are used to indicate visibility of attributes and operations. ‘+’ is used to denote Public visibility (everyone) ‘#’ is used to denote Protected visibility (friends and derived) ‘-’ is used to denote Private visibility (no one)  By default, attributes are hidden and operations are visible.  The last two compartments may be omitted to simplify the class diagrams
  • 8. An example of Class Account_Name - Customer Name - Balance +add Funds( ) +with Draw( ) +transfer( ) Name Attributes Operations
  • 9. There are two kinds of Relationships  Generalization (parent-child relationship)  Association (student enrolls in course) Associations can be further classified as  Aggregation  Composition
  • 10. Generalization  Generalization expresses a parent/child relationship among related classes.  Used for abstracting details in several layers Super type Subtype1 Subtype2 Example
  • 11. Association Associations represent relationships between instances of classes . An association is a link connecting two classes. Bi-directional association Associations are assumed to be bi-directional e.g. Flight and plane notation: Uni-directional association e.g. Order and item notation:
  • 12. Composition  Composition: expresses a relationship among instances of related classes. It is a specific kind of Whole-Part relationship  It expresses a relationship where an instance of the Whole-class has the responsibility to create and initialize instances of each Part-class.
  • 13. 1 2 Automobile Engine Transmission Example of Composition Person Legs Hands
  • 14. Aggregation  Aggregation: expresses a relationship among instances of related classes. It is a specific kind of Container Containee relationship.  It expresses a relationship where an instance of the Container-class has the responsibility to hold and maintain instances of each Containee-class that have been created outside the auspices of the Container-class.
  • 15. Example of Aggregation Bag Books Apples