SlideShare a Scribd company logo
1 of 14
TOPIC:UML CLASS DIAGRAM NOTATION
17BS(IT)63
1
Shaheed Benazir Bhutto
University
Shaheed Benazir Abad
Name: Adnan Ejaz
Roll No: 17BSIT(063) Present to: ABC……
What is a Class Diagram?
 A Class Diagram is a diagram describing the structure of a system
 • shows the system's
 • classes
 • Attributes
 • operations (or methods),
 • Relationships among the classes.
17BS(IT)63
2
Essential Elements of a UML Class
Diagram
 Class
 Attributes
 Operations
 Relationships
 Associations
 Generalization
 Realization
17BS(IT)63
3
Class
 Describes a set of objects having similar:
 – Attributes (status)
 – Operations (behavior) Class Name Window
 – Relationships with other classes
 • Attributes and operations may Attributes size: Size visibility:
 – have their visibility marked: visibility: boolean
 Operations display() hide()
17BS(IT)63
4
Associations
 An association between two classes indicates that objects at one end of
an association “recognize” objects at the other end and may send
messages to them.
 • Example: “An Employee works for a Company”
 Employee Company
17BS(IT)63
5
Associations (cont.)
StaffMember Student
1..* *instructs
instructor
Association
name
Role
name
Multiplicity
Navigable
(uni-directional)
association
Courses
pre -
requisites
0..3
Reflexive
association
Role
*
17BS(IT)63
6
Associations (cont.)
 To clarify its meaning, an association may be named.
 The name is represented as a label placed midway along the association line.
 Usually a verb or a verb phrase.
 A role is an end of an association where it connects to a class.
 May be named to indicate the role played by the class attached to the end of
the association path.
 Usually a noun or noun phrase
17BS(IT)63
7
Associations (cont.)
 Mandatory for reflexive associations
 Multiplicity
 the number of objects that participate in the association.
 Indicates whether or not an association is mandatory.
 Multiplicity Indicators
 Exactly one 1
 Zero or more (unlimited)* (0..*)
 One or more 1..*
 Zero or one (optional association) 0..1
 Specified range 2..4
 Multiple, disjoint ranges 2, 4..6, 8
17BS(IT)63
8
Aggregation
 A special form of association that models a whole-part relationship between an aggregate (the
whole) and its parts.
 – Models a “is a part-part of” relationship.
Whole Part
Car Door House
1..*2..*
17BS(IT)63
9
Aggregation (cont.)
 Aggregation tests:
 – Is the phrase “part of” used to describe the relationship?
 A door is “part of” a car
 Are some operations on the whole automatically applied to its parts?
 Move the car, move the door.
 Are some attribute values propagated from the whole to all or some of its parts?
 The car is blue, therefore the door is blue.
 Is there an intrinsic asymmetry to the relationship where one class is subordinate
to the other?
 A door is part of a car. A car is not part of a door.
17BS(IT)63
10
Generalization
 Indicates that objects of the specialized class (subclass) are substitutable for objects of the
generalized class (super-class).
 – “is kind of” relationship.
Shape
}abstract{
Circle
Super
Class
Sub
Class
An abstract
class
Generalization
relationship
17BS(IT)63
11
Generalization
 A sub-class inherits from its super-class
 Attributes
 Operations
 Relationships
 A sub-class may
 Add attributes and operations
 Add relationships
 Refine (override) inherited operations
 A generalization relationship may not be used to model interface implementation.
17BS(IT)63
12
Realization
 A realization relationship indicates that one class implements a behavior
specified by another class (an interface or protocol).
 An interface can be realized by many classes.
 A class may realize many interfaces.
LinkedList
<<interface>>
List
17BS(IT)63
13
THANK YOU
17BS(IT)63
14

More Related Content

What's hot

UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbolsKumar
 
The Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyThe Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyCreately
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural ModelingAMITJain879
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Ramakant Soni
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML DiagramsManish Kumar
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram Rahul Pola
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity DiagramNiloy Rocker
 
software requirement specification
software requirement specificationsoftware requirement specification
software requirement specificationmaliksiddique1
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSAshita Agrawal
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)Manoj Reddy
 
Class diagram
Class diagramClass diagram
Class diagramSESP123
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Uml with detail
Uml with detailUml with detail
Uml with detailHamza Khan
 

What's hot (20)

UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
The Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyThe Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by Creately
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
Cohesion and coupling
Cohesion and couplingCohesion and coupling
Cohesion and coupling
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study Uml
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
software requirement specification
software requirement specificationsoftware requirement specification
software requirement specification
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
 
Class diagram
Class diagramClass diagram
Class diagram
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 

Similar to UML Class Diagram Notation

Descriptions of class diagrams in software
Descriptions of class diagrams in softwareDescriptions of class diagrams in software
Descriptions of class diagrams in softwaressuser9d62d6
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationshipsPooja mittal
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slidesSumedha
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagramskebsterz
 
Architecture and design
Architecture and designArchitecture and design
Architecture and designhimanshu_airon
 
Object-oriented modeling and design.pdf
Object-oriented modeling and  design.pdfObject-oriented modeling and  design.pdf
Object-oriented modeling and design.pdfSHIVAM691605
 
UML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingUML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingStefano Dalla Palma
 
Uml unified-modeling-language-presented by dileep
Uml unified-modeling-language-presented by dileepUml unified-modeling-language-presented by dileep
Uml unified-modeling-language-presented by dileepmekhap
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2Sisir Ghosh
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 

Similar to UML Class Diagram Notation (20)

Descriptions of class diagrams in software
Descriptions of class diagrams in softwareDescriptions of class diagrams in software
Descriptions of class diagrams in software
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slides
 
uml2-1214558329929112-8.ppt
uml2-1214558329929112-8.pptuml2-1214558329929112-8.ppt
uml2-1214558329929112-8.ppt
 
Css uml
Css umlCss uml
Css uml
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Unified Modelling Language
Unified Modelling Language Unified Modelling Language
Unified Modelling Language
 
Umldiagram
UmldiagramUmldiagram
Umldiagram
 
Architecture and design
Architecture and designArchitecture and design
Architecture and design
 
Slides chapter 11
Slides chapter 11Slides chapter 11
Slides chapter 11
 
Object-oriented modeling and design.pdf
Object-oriented modeling and  design.pdfObject-oriented modeling and  design.pdf
Object-oriented modeling and design.pdf
 
UML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingUML, ER and Dimensional Modelling
UML, ER and Dimensional Modelling
 
Uml unified-modeling-language-presented by dileep
Uml unified-modeling-language-presented by dileepUml unified-modeling-language-presented by dileep
Uml unified-modeling-language-presented by dileep
 
4. UML
4. UML4. UML
4. UML
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
Software Testing and UML Lab
Software Testing and UML LabSoftware Testing and UML Lab
Software Testing and UML Lab
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
Ooad
OoadOoad
Ooad
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

UML Class Diagram Notation

  • 1. TOPIC:UML CLASS DIAGRAM NOTATION 17BS(IT)63 1 Shaheed Benazir Bhutto University Shaheed Benazir Abad Name: Adnan Ejaz Roll No: 17BSIT(063) Present to: ABC……
  • 2. What is a Class Diagram?  A Class Diagram is a diagram describing the structure of a system  • shows the system's  • classes  • Attributes  • operations (or methods),  • Relationships among the classes. 17BS(IT)63 2
  • 3. Essential Elements of a UML Class Diagram  Class  Attributes  Operations  Relationships  Associations  Generalization  Realization 17BS(IT)63 3
  • 4. Class  Describes a set of objects having similar:  – Attributes (status)  – Operations (behavior) Class Name Window  – Relationships with other classes  • Attributes and operations may Attributes size: Size visibility:  – have their visibility marked: visibility: boolean  Operations display() hide() 17BS(IT)63 4
  • 5. Associations  An association between two classes indicates that objects at one end of an association “recognize” objects at the other end and may send messages to them.  • Example: “An Employee works for a Company”  Employee Company 17BS(IT)63 5
  • 6. Associations (cont.) StaffMember Student 1..* *instructs instructor Association name Role name Multiplicity Navigable (uni-directional) association Courses pre - requisites 0..3 Reflexive association Role * 17BS(IT)63 6
  • 7. Associations (cont.)  To clarify its meaning, an association may be named.  The name is represented as a label placed midway along the association line.  Usually a verb or a verb phrase.  A role is an end of an association where it connects to a class.  May be named to indicate the role played by the class attached to the end of the association path.  Usually a noun or noun phrase 17BS(IT)63 7
  • 8. Associations (cont.)  Mandatory for reflexive associations  Multiplicity  the number of objects that participate in the association.  Indicates whether or not an association is mandatory.  Multiplicity Indicators  Exactly one 1  Zero or more (unlimited)* (0..*)  One or more 1..*  Zero or one (optional association) 0..1  Specified range 2..4  Multiple, disjoint ranges 2, 4..6, 8 17BS(IT)63 8
  • 9. Aggregation  A special form of association that models a whole-part relationship between an aggregate (the whole) and its parts.  – Models a “is a part-part of” relationship. Whole Part Car Door House 1..*2..* 17BS(IT)63 9
  • 10. Aggregation (cont.)  Aggregation tests:  – Is the phrase “part of” used to describe the relationship?  A door is “part of” a car  Are some operations on the whole automatically applied to its parts?  Move the car, move the door.  Are some attribute values propagated from the whole to all or some of its parts?  The car is blue, therefore the door is blue.  Is there an intrinsic asymmetry to the relationship where one class is subordinate to the other?  A door is part of a car. A car is not part of a door. 17BS(IT)63 10
  • 11. Generalization  Indicates that objects of the specialized class (subclass) are substitutable for objects of the generalized class (super-class).  – “is kind of” relationship. Shape }abstract{ Circle Super Class Sub Class An abstract class Generalization relationship 17BS(IT)63 11
  • 12. Generalization  A sub-class inherits from its super-class  Attributes  Operations  Relationships  A sub-class may  Add attributes and operations  Add relationships  Refine (override) inherited operations  A generalization relationship may not be used to model interface implementation. 17BS(IT)63 12
  • 13. Realization  A realization relationship indicates that one class implements a behavior specified by another class (an interface or protocol).  An interface can be realized by many classes.  A class may realize many interfaces. LinkedList <<interface>> List 17BS(IT)63 13