SlideShare une entreprise Scribd logo
1  sur  13
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

Contenu connexe

Tendances

Unified modeling language diagrams
Unified modeling language diagramsUnified modeling language diagrams
Unified modeling language diagrams
Alaa Ahmed
 
Software Quality Attributes
Software Quality AttributesSoftware Quality Attributes
Software Quality Attributes
Hayim Makabee
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class Diagram
Niloy Rocker
 

Tendances (20)

Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Class Diagrams
Class DiagramsClass Diagrams
Class Diagrams
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Object oriented modeling and design
Object oriented modeling and designObject oriented modeling and design
Object oriented modeling and design
 
UML Case Tools
UML Case ToolsUML Case Tools
UML Case Tools
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Class diagram
Class diagramClass diagram
Class diagram
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
Architecture Design in Software Engineering
Architecture Design in Software EngineeringArchitecture Design in Software Engineering
Architecture Design in Software Engineering
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Unified modeling language diagrams
Unified modeling language diagramsUnified modeling language diagrams
Unified modeling language diagrams
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
 
Software Quality Attributes
Software Quality AttributesSoftware Quality Attributes
Software Quality Attributes
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Uml and enterprise architect
Uml and enterprise architectUml and enterprise architect
Uml and enterprise architect
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Unit 2
Unit 2Unit 2
Unit 2
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class Diagram
 

En vedette

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
 
Class diagram railway reservation system
Class diagram railway reservation systemClass diagram railway reservation system
Class diagram railway reservation system
muthumeenakshim
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
mewaseem
 

En vedette (14)

Class diagrams
Class diagramsClass diagrams
Class diagrams
 
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
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 

Similaire à UML Class Diagram G-3-122139

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 (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
 

Similaire à 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)
 
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
 
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
 
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 Practical.pptx System Analysis and Design
UML Practical.pptx System Analysis and DesignUML Practical.pptx System Analysis and Design
UML Practical.pptx System Analysis and Design
 

Plus de Hansi Thenuwara

Channelling Management System
Channelling Management SystemChannelling Management System
Channelling Management System
Hansi Thenuwara
 

Plus de 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