SlideShare a Scribd company logo
GROUP - C
UML CLASS DIAGRAM
• 122065
• 122109
• 122139
• 122141
UML class diagram:
a picture of
• the classes in an OO
system
• their fields and methods
• connections between
the classes
that interact or inherit
from each other
Not represented in a
UML class diagram:
• details of how the
classes interact with
each other
• algorithmic details; how
a particular behavior is
implemented
WHAT IS A CLASS DIAGRAM?
A CLASS
Class Name
Attributes
Methods
write <<interface>> on top of interfaces' names
use italics for an abstract class name
should include all fields of the object
omit trivial (get/set) methods
don't omit any methods from an interface
should not include inherited methods
visibility:
• + public
• # protected
• - private
• ~ package (default)
• / derived
ATTRIBUTES AND METHODS
• underline static
attributes/methods
• parameter types listed as
(name: type)
• omit return type on
constructors and when return
type is void
Attribute  - balance : double = 0.00
Method  + distance(p1: Point, p2: Point): double
Displays
• inheritance between classes
• interface implementation
Arrow Styles
• class: solid line, black arrow
• abstract class: solid line, white arrow
• interface: dashed line, white arrow
RELATIONSHIPS -
GENERALIZATION
Displays a usage relationship
There are three parts of an Association :
• Multiplicity : How many are used
• Name : what relationship the objects have
• Navigability : Direction
There are three types of Associations :
• Dependency
• Aggregation
• Composition
RELATIONSHIPS -
ASSOCIATION
Customer Order
1 *
Multiplicity
• One to One
• One to Many
RELATIONSHIPS -
ASSOCIATION
Dependency :
• A using relationship between two
classes
• A change in the specification of
one class may affect the other
• But not necessarily the reverse
RELATIONSHIPS -
ASSOCIATION
Dependent Employee
dependency
Aggregation :
Has a - relationship
RELATIONSHIPS -
ASSOCIATION
1
1
Car
aggregation
Engine
Composition:
Is composed of - relationship
RELATIONSHIPS -
ASSOCIATION
Page
Book
composition
*
1
• Violet (free) – http://horstmann.com/violet/
• Rational Rose – http://www.rational.com/
• Visual Paradigm UML Suite (trial)
TOOLS
• Can be used to discover related data and attributes
• Gives a quick picture of the important entities
• Shows whether you have too few/many classes, whether
the relationships between objects are too complex, etc.
• Spots dependencies between one class/object and
another
BUT
• Not data-driven
• Do not display the control flow
PROS AND CONS
THANK YOU

More Related Content

What's hot

Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
Niloy Rocker
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
Swathy T
 
UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and Views
Kumar
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
Nadia_Nazeer
 
Class diagram- UML diagram
Class diagram- UML diagramClass diagram- UML diagram
Class diagram- UML diagram
Ramakant Soni
 
Uml
UmlUml
Chapter20 object oriented analysis and design
Chapter20 object oriented analysis and designChapter20 object oriented analysis and design
Chapter20 object oriented analysis and design
Dhani Ahmad
 
Functional modeling
Functional modelingFunctional modeling
Functional modeling
Preeti Mishra
 
UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
CherryBerry2
 
Class diagram
Class diagramClass diagram
Class diagram
Praneeth Yadav
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
Niloy Rocker
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
barney92
 
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
Amr E. Mohamed
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine Diagram
Niloy Rocker
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
Debajyoti Biswas
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
leela rani
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
Inocentshuja Ahmad
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
Inge Powell
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
Nwabueze Obioma
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1
gopal10scs185
 

What's hot (20)

Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
 
UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and Views
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Class diagram- UML diagram
Class diagram- UML diagramClass diagram- UML diagram
Class diagram- UML diagram
 
Uml
UmlUml
Uml
 
Chapter20 object oriented analysis and design
Chapter20 object oriented analysis and designChapter20 object oriented analysis and design
Chapter20 object oriented analysis and design
 
Functional modeling
Functional modelingFunctional modeling
Functional modeling
 
UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
 
Class diagram
Class diagramClass diagram
Class diagram
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine Diagram
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1
 

Viewers also liked

Class diagrams
Class diagramsClass diagrams
Class diagrams
Vince Carter
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
SayedFarhan110
 
Class Diagram
Class DiagramClass Diagram
Class Diagram
Rana_brothers
 
2 class use case
2 class use case2 class use case
2 class use case
Minal Maniar
 
OOP Concepets and UML Class Diagrams
OOP Concepets and UML Class DiagramsOOP Concepets and UML Class Diagrams
OOP Concepets and UML Class Diagrams
Bhathiya Nuwan
 
class diagram
class diagramclass diagram
class diagram
Shohan Ean
 
Class Diagram for online auction system
Class Diagram for online auction systemClass Diagram for online auction system
Class Diagram for online auction system
Komalah Nair
 
Seminar State Chart1
Seminar State Chart1Seminar State Chart1
Seminar State Chart1
Jenish Bhavsar
 
Class diagram railway reservation system
Class diagram railway reservation systemClass diagram railway reservation system
Class diagram railway reservation systemmuthumeenakshim
 
Object diagram
Object diagramObject diagram
Object diagram
Rahul Pola
 
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Isuru Perera
 
Class diagram
Class diagramClass diagram
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
Tushar B Kute
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
mewaseem
 

Viewers also liked (14)

Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Class Diagram
Class DiagramClass Diagram
Class Diagram
 
2 class use case
2 class use case2 class use case
2 class use case
 
OOP Concepets and UML Class Diagrams
OOP Concepets and UML Class DiagramsOOP Concepets and UML Class Diagrams
OOP Concepets and UML Class Diagrams
 
class diagram
class diagramclass diagram
class diagram
 
Class Diagram for online auction system
Class Diagram for online auction systemClass Diagram for online auction system
Class Diagram for online auction system
 
Seminar State Chart1
Seminar State Chart1Seminar State Chart1
Seminar State Chart1
 
Class diagram railway reservation system
Class diagram railway reservation systemClass diagram railway reservation system
Class diagram railway reservation system
 
Object diagram
Object diagramObject diagram
Object diagram
 
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
 
Class diagram
Class diagramClass diagram
Class diagram
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 

Similar to UML Class Diagram G-3-122139

1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
PRABU M
 
Ooad( class diagram)
Ooad( class diagram)Ooad( class diagram)
Ooad( class diagram)
RimshaLiaqat5
 
Lecture 06.pptxLecture 06.pptxLecture 06.pptx
Lecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptx
Lecture 06.pptxLecture 06.pptxLecture 06.pptx
EnghamzaKhalailah
 
UML
UMLUML
UML Modeling in Java
UML Modeling in JavaUML Modeling in Java
UML Modeling in Java
Daffodil International University
 
Class diagram
Class diagramClass diagram
Class diagram
LakshmanaD2
 
Cs8592 ooad unit 2
Cs8592 ooad unit 2Cs8592 ooad unit 2
Cs8592 ooad unit 2
VADUGANATHAND1
 
Cs8592 ooad unit 2
Cs8592 ooad unit 2Cs8592 ooad unit 2
Cs8592 ooad unit 2
MAYILVELKUMARPONNUSA
 
Ooad static diagram
Ooad static diagramOoad static diagram
Ooad static diagram
TSubashiniAPIICSE
 
UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptx
viju001
 
UML and Case study
UML and Case study UML and Case study
UML and Case study
Mihika-QA
 
SW SEC 1.pptx
SW SEC 1.pptxSW SEC 1.pptx
SW SEC 1.pptx
abdohanfi1
 
Chapter3
Chapter3Chapter3
Chapter3
Fahad Sheref
 
introofUML.pptx
introofUML.pptxintroofUML.pptx
introofUML.pptx
RojaPogul1
 
uml.ppt
uml.pptuml.ppt
uml.ppt
RojaPogul1
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)
hrajak5
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)
stanbridge
 
classdiagram.pptx
classdiagram.pptxclassdiagram.pptx
classdiagram.pptx
RahulGautam663736
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
SwatiS-BA
 
UML Training for Business Analysts
UML Training for Business AnalystsUML Training for Business Analysts
UML Training for Business Analysts
SwatiS-BA
 

Similar to UML Class Diagram G-3-122139 (20)

1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
Ooad( class diagram)
Ooad( class diagram)Ooad( class diagram)
Ooad( class diagram)
 
Lecture 06.pptxLecture 06.pptxLecture 06.pptx
Lecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptxLecture 06.pptx
Lecture 06.pptxLecture 06.pptxLecture 06.pptx
 
UML
UMLUML
UML
 
UML Modeling in Java
UML Modeling in JavaUML Modeling in Java
UML Modeling in Java
 
Class diagram
Class diagramClass diagram
Class diagram
 
Cs8592 ooad unit 2
Cs8592 ooad unit 2Cs8592 ooad unit 2
Cs8592 ooad unit 2
 
Cs8592 ooad unit 2
Cs8592 ooad unit 2Cs8592 ooad unit 2
Cs8592 ooad unit 2
 
Ooad static diagram
Ooad static diagramOoad static diagram
Ooad static diagram
 
UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptx
 
UML and Case study
UML and Case study UML and Case study
UML and Case study
 
SW SEC 1.pptx
SW SEC 1.pptxSW SEC 1.pptx
SW SEC 1.pptx
 
Chapter3
Chapter3Chapter3
Chapter3
 
introofUML.pptx
introofUML.pptxintroofUML.pptx
introofUML.pptx
 
uml.ppt
uml.pptuml.ppt
uml.ppt
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)
 
classdiagram.pptx
classdiagram.pptxclassdiagram.pptx
classdiagram.pptx
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
UML Training for Business Analysts
UML Training for Business AnalystsUML Training for Business Analysts
UML Training for Business Analysts
 

More from Hansi Thenuwara

Natural language processing
Natural language processingNatural language processing
Natural language processing
Hansi Thenuwara
 
Travel sri lanka
Travel sri lankaTravel sri lanka
Travel sri lanka
Hansi Thenuwara
 
Mobile based electricity
Mobile based electricityMobile based electricity
Mobile based electricity
Hansi Thenuwara
 
Case study3
Case study3Case study3
Case study3
Hansi Thenuwara
 
Jsp & struts
Jsp & strutsJsp & struts
Jsp & struts
Hansi Thenuwara
 
Scrum methodology
Scrum methodologyScrum methodology
Scrum methodology
Hansi Thenuwara
 
ICT boom in India
ICT boom in IndiaICT boom in India
ICT boom in India
Hansi Thenuwara
 
New dimensions of technology
New dimensions of technologyNew dimensions of technology
New dimensions of technology
Hansi Thenuwara
 
Cleaner production
Cleaner productionCleaner production
Cleaner production
Hansi Thenuwara
 
Tourism industry in Sri Lanka
Tourism industry in Sri LankaTourism industry in Sri Lanka
Tourism industry in Sri Lanka
Hansi Thenuwara
 
Operations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka LimitedOperations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka Limited
Hansi Thenuwara
 
Patient management
Patient managementPatient management
Patient management
Hansi Thenuwara
 
Channelling Management System
Channelling Management SystemChannelling Management System
Channelling Management System
Hansi Thenuwara
 

More from Hansi Thenuwara (13)

Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Travel sri lanka
Travel sri lankaTravel sri lanka
Travel sri lanka
 
Mobile based electricity
Mobile based electricityMobile based electricity
Mobile based electricity
 
Case study3
Case study3Case study3
Case study3
 
Jsp & struts
Jsp & strutsJsp & struts
Jsp & struts
 
Scrum methodology
Scrum methodologyScrum methodology
Scrum methodology
 
ICT boom in India
ICT boom in IndiaICT boom in India
ICT boom in India
 
New dimensions of technology
New dimensions of technologyNew dimensions of technology
New dimensions of technology
 
Cleaner production
Cleaner productionCleaner production
Cleaner production
 
Tourism industry in Sri Lanka
Tourism industry in Sri LankaTourism industry in Sri Lanka
Tourism industry in Sri Lanka
 
Operations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka LimitedOperations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka Limited
 
Patient management
Patient managementPatient management
Patient management
 
Channelling Management System
Channelling Management SystemChannelling Management System
Channelling Management System
 

UML Class Diagram G-3-122139

  • 1. GROUP - C UML CLASS DIAGRAM • 122065 • 122109 • 122139 • 122141
  • 2. UML class diagram: a picture of • the classes in an OO system • their fields and methods • connections between the classes that interact or inherit from each other Not represented in a UML class diagram: • details of how the classes interact with each other • algorithmic details; how a particular behavior is implemented WHAT IS A CLASS DIAGRAM?
  • 3. A CLASS Class Name Attributes Methods write <<interface>> on top of interfaces' names use italics for an abstract class name should include all fields of the object omit trivial (get/set) methods don't omit any methods from an interface should not include inherited methods
  • 4. visibility: • + public • # protected • - private • ~ package (default) • / derived ATTRIBUTES AND METHODS • underline static attributes/methods • parameter types listed as (name: type) • omit return type on constructors and when return type is void Attribute  - balance : double = 0.00 Method  + distance(p1: Point, p2: Point): double
  • 5. Displays • inheritance between classes • interface implementation Arrow Styles • class: solid line, black arrow • abstract class: solid line, white arrow • interface: dashed line, white arrow RELATIONSHIPS - GENERALIZATION
  • 6. Displays a usage relationship There are three parts of an Association : • Multiplicity : How many are used • Name : what relationship the objects have • Navigability : Direction There are three types of Associations : • Dependency • Aggregation • Composition RELATIONSHIPS - ASSOCIATION Customer Order 1 *
  • 7. Multiplicity • One to One • One to Many RELATIONSHIPS - ASSOCIATION
  • 8. Dependency : • A using relationship between two classes • A change in the specification of one class may affect the other • But not necessarily the reverse RELATIONSHIPS - ASSOCIATION Dependent Employee dependency
  • 9. Aggregation : Has a - relationship RELATIONSHIPS - ASSOCIATION 1 1 Car aggregation Engine
  • 10. Composition: Is composed of - relationship RELATIONSHIPS - ASSOCIATION Page Book composition * 1
  • 11. • Violet (free) – http://horstmann.com/violet/ • Rational Rose – http://www.rational.com/ • Visual Paradigm UML Suite (trial) TOOLS
  • 12. • Can be used to discover related data and attributes • Gives a quick picture of the important entities • Shows whether you have too few/many classes, whether the relationships between objects are too complex, etc. • Spots dependencies between one class/object and another BUT • Not data-driven • Do not display the control flow PROS AND CONS