SlideShare a Scribd company logo
4
Most read
8
Most read
14
Most read
Class Diagram & Object Diagram
ATA.USAMA
AMP/IT/2015/F/0018
What is a Class Diagram?
 A Class Diagram is a diagram describing the structure
of a system.
 It consists the :
 Classes.
 Attributes.
 Operations.
 Relationships among the classes.
Classes
 A class is a description of a set of objects that share the
same attributes , operations, relationships, and
semantics.
 Graphically, a class is rendered as a rectangle, usually
including its name , attributes, and operations in
separate , designated compartments.
ClassName
attributes
operations
Class Names
 The name of the class is the only required tag in the
graphical representation of a class. It always appears in
the top-most compartment.
ClassName
attributes
operations
Class Attributes
should include all fields of the object.
Attributes are usually listed in the form:
attributeName : Type
A derived attribute is one that can be computed from other
attributes, but doesn’t actually exist.
Example;
 a Person’s age can be computed from his birth date.
/ age : Date
Person
name : String
address : Address
birthdate : Date
/ age : Date
ssn : Id
Class Attributes (Cont..)
 Attributes can be:
 + public.
 # protected.
 - private.
 / derived.
Person
+ name : String
# address : Address
# birthdate : Date
/ age : Date
- ssn : Id
Class Operations
 Operations describe the class behavior and appear in
the third compartment.
Person
name : String
address : Address
birthdate : Date
ssn : Id
eat
sleep
work
play
Relationships
There are three types of relationships you can
set up between classes.
Dependencies
Generalizations
Associations
Dependency Relationships
 A dependency indicates a semantic relationship
between two or more elements.
 Symbolized by dotted line.
Generalization Relationships
 A generalization connects a subclass to its superclass.
 Generalization provides the capability to create
supper classes that encapsulate structure and behavior
common to several classes.
 specialization provides the ability to create subclasses
that represent refinement to the supper-class.t.
Example :
Association Relationships
 If two classes in a model need to communicate with each
other, there must be link between them.
Here , an association is instructs
Instructor Student
instructs
Association Relationships(Cont..)
 We can indicate the multiplicity of an association by
adding multiplicity adornments to the line denoting the
association.
The example indicates that a Student has one or more
Instructors:
Student Instructor
1..*
Thank You
Kingsoft Office
published by www.Kingsoftstore.com
@Kingsoft_Office
kingsoftstore

More Related Content

PPT
Class diagrams
PPT
Descriptions of class diagrams in software
PDF
UML_Class_Diagram_Software_Engineering.pdf
PPT
UML Diagrams: Class Diagrams in Software Engineering
PPT
Lecture12 software design class diagram
PPTX
210280107093_CLASS_DIAGRAM.pptx
PPT
Class diagram
DOCX
Chapterunifiedmo 3 UML Class Diagram.docx
Class diagrams
Descriptions of class diagrams in software
UML_Class_Diagram_Software_Engineering.pdf
UML Diagrams: Class Diagrams in Software Engineering
Lecture12 software design class diagram
210280107093_CLASS_DIAGRAM.pptx
Class diagram
Chapterunifiedmo 3 UML Class Diagram.docx

Similar to class Diagram.ppt (20)

PDF
Introduction to UML, a guide to learn.pdf
PPTX
Relationships and their representation in a class diagram.pptx
PPT
Slide 5 Class Diagram
PPT
PDF
Class diagram- UML diagram
PPTX
CHAP1 - OBJECT ORIENTED PROGRAMMING.pptx
PDF
Ooad( class diagram)
PDF
Class diagram and its importance in software
PPT
Object and class relationships
PPT
Chapter3
PPTX
Structural modeling and analysis
PPTX
OOP_Module 2.pptx
PPT
Class diagram presentation
PPT
Chapter 2-Unified Modeling Languagee.ppt
PPT
Chapter 2-Unified Modeling Languagee.ppt
PPT
Basic Class Diagrams in fundamental computing.ppt
PPT
Department of Computer science and engineering
PPT
Basic Class Diagrams in software engineering
PDF
Lecture05-Structural Modeling for students.pdf
Introduction to UML, a guide to learn.pdf
Relationships and their representation in a class diagram.pptx
Slide 5 Class Diagram
Class diagram- UML diagram
CHAP1 - OBJECT ORIENTED PROGRAMMING.pptx
Ooad( class diagram)
Class diagram and its importance in software
Object and class relationships
Chapter3
Structural modeling and analysis
OOP_Module 2.pptx
Class diagram presentation
Chapter 2-Unified Modeling Languagee.ppt
Chapter 2-Unified Modeling Languagee.ppt
Basic Class Diagrams in fundamental computing.ppt
Department of Computer science and engineering
Basic Class Diagrams in software engineering
Lecture05-Structural Modeling for students.pdf
Ad

Recently uploaded (20)

PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Digital Strategies for Manufacturing Companies
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Essential Infomation Tech presentation.pptx
PDF
medical staffing services at VALiNTRY
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
ai tools demonstartion for schools and inter college
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How Creative Agencies Leverage Project Management Software.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Digital Strategies for Manufacturing Companies
Operating system designcfffgfgggggggvggggggggg
Essential Infomation Tech presentation.pptx
medical staffing services at VALiNTRY
Reimagine Home Health with the Power of Agentic AI​
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
VVF-Customer-Presentation2025-Ver1.9.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
ai tools demonstartion for schools and inter college
How to Choose the Right IT Partner for Your Business in Malaysia
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Understanding Forklifts - TECH EHS Solution
Softaken Excel to vCard Converter Software.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
CHAPTER 2 - PM Management and IT Context
How Creative Agencies Leverage Project Management Software.pdf
Ad

class Diagram.ppt

  • 1. Class Diagram & Object Diagram ATA.USAMA AMP/IT/2015/F/0018
  • 2. What is a Class Diagram?  A Class Diagram is a diagram describing the structure of a system.  It consists the :  Classes.  Attributes.  Operations.  Relationships among the classes.
  • 3. Classes  A class is a description of a set of objects that share the same attributes , operations, relationships, and semantics.  Graphically, a class is rendered as a rectangle, usually including its name , attributes, and operations in separate , designated compartments. ClassName attributes operations
  • 4. Class Names  The name of the class is the only required tag in the graphical representation of a class. It always appears in the top-most compartment. ClassName attributes operations
  • 5. Class Attributes should include all fields of the object. Attributes are usually listed in the form: attributeName : Type A derived attribute is one that can be computed from other attributes, but doesn’t actually exist. Example;  a Person’s age can be computed from his birth date. / age : Date Person name : String address : Address birthdate : Date / age : Date ssn : Id
  • 6. Class Attributes (Cont..)  Attributes can be:  + public.  # protected.  - private.  / derived. Person + name : String # address : Address # birthdate : Date / age : Date - ssn : Id
  • 7. Class Operations  Operations describe the class behavior and appear in the third compartment. Person name : String address : Address birthdate : Date ssn : Id eat sleep work play
  • 8. Relationships There are three types of relationships you can set up between classes. Dependencies Generalizations Associations
  • 9. Dependency Relationships  A dependency indicates a semantic relationship between two or more elements.  Symbolized by dotted line.
  • 10. Generalization Relationships  A generalization connects a subclass to its superclass.  Generalization provides the capability to create supper classes that encapsulate structure and behavior common to several classes.  specialization provides the ability to create subclasses that represent refinement to the supper-class.t.
  • 12. Association Relationships  If two classes in a model need to communicate with each other, there must be link between them. Here , an association is instructs Instructor Student instructs
  • 13. Association Relationships(Cont..)  We can indicate the multiplicity of an association by adding multiplicity adornments to the line denoting the association. The example indicates that a Student has one or more Instructors: Student Instructor 1..*
  • 14. Thank You Kingsoft Office published by www.Kingsoftstore.com @Kingsoft_Office kingsoftstore