SlideShare a Scribd company logo
1 of 22
CLASS AND OBJECT DIAGRAMS
Submitted by:
Sadhana Singh
M.Tech(S.E.)
Contents
 Introduction about Class Diagram
 Common Uses of Class Diagram
 Common Modeling Techniques for Class
Diagram
 Introduction about Object Diagram
 Common Uses of Object Diagram
 Common Modeling Techniques for Object
Diagram
 Difference between class and object diagram
Introduction about Class Diagram
 Found in modeling object oriented system.
 Use to model static design view of a system.
 Main building block of Object Oriented
Modeling.
 Describes the type of objects in system.
 In the diagram these classes are represented with
boxes which contain three parts
◦ The upper part holds the name of the class
◦ The middle part contains the attributes of the class
◦ The bottom part gives the methods or operations the class can
take or undertake
Example:
Common Uses of Class Diagram
 To model the vocabulary of system.
 To model simple collaborations.
 To model a logical database schema.
Common Modeling Techniques for
Class Diagram
 Modeling simple collaborations.
 Modeling a logical database schema.
 Forward and Reverse Engineering.
Modeling simple collaborations
 Identify the mechanism we had like to model.
 For each mechanism, identify the classes,
interfaces, and other collaborations that
participate in this collaboration.
 Use scenarios to walk through these things.
 To populate these elements with their contents.
Modeling a logical database schema
 Identify those classes in our model whose state
must transcend the lifetime of their application.
 Create a class diagram that contains these
classes and mark them as persistent.
 Expand the structural details of these classes.
 Watch for common patterns that complicate
physical database design.
 Consider also the behavior of these classes by
expanding operations.
 Use tools to help we transform our logical
design into a physical design.
Forward and Reverse Engineering
Forward Engineering
 Identify the rules for mapping to our
implementation language or languages of
choice.
 Depending on the semantics of the languages we
choose, we may have to constrain our use of
certain UML features.
 Use tagged values to specify our target
language.
 Use tools to forward engineer our models.
Forward engineering the class EventHandler
yields the following code.
public abstract class EventHandler {
EventHandler successor;
private Integer currentEventID;
private String source;
EventHandler() {}
public void handleRequest() {}
}
Reverse Engineering
 Identify the rules for mapping from our
implementation language or languages of
choice.
 Using a tool, point to the code we had like to
reverse engineer.
 Using our tool, create a class diagram by
querying the model.
Introduction about Object Diagram
 Gives snapshots of the system.
 Shows a complete or partial view of structure of
a modeled system at specific time.
 Derived from class diagrams.
 Represent an instance of class diagrams.
 To model the static design view.
Common Uses of Object Diagram
To model object structure.
Common Modeling techniques for
Object Diagram
 Modeling object structures.
 Forward and Reverse Engineering.
Modeling object Structures
 Identify the mechanism we had like to model.
 For each mechanism, identify the classes,
interfaces, and other elements that participate in
this collaboration; identify the relationships
among these things, as well.
 Consider one scenario that walks through this
mechanism.
 Expose the state and attribute values of each
such object, as necessary, to understand the
scenario.
 Similarly, expose the links among these objects,
representing instances of associations among
them.
Forward and Reverse Engineering
Reverse Engineering
 We’ll set your context inside an operation or relative
to an instance of one particular class.
 Using a tool or simply walking through a scenario,
stop execution at a certain moment in time.
 Identify the set of interesting objects that collaborate
in that context and render them in an object diagram.
 As necessary to understand their semantics, expose
these object's states.
 As necessary to understand their semantics, identify
the links that exist among these objects.
Difference between Class and Object
Diagrams
 A class diagram is a graph of Classifier elements
connected by their various static relationships
whereas an object diagram is a graph of
instances, including objects and data values.
 Class diagrams can contain objects, so a class
diagram with objects and no classes is an object
diagram.
 Class diagrams are the blueprints of your system
or subsystem whereas object diagram shows a
snapshot of the detailed state of a system at a
point in time.
THANK YOU

More Related Content

What's hot

Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling TechniquesShilpa Wadhwani
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML DiagramsManish Kumar
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewRajiv Kumar
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologiesAmith Tiwari
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General IntroductionAsma CHERIF
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its typesSyed Hassan Ali
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramKumar
 
Domain class model
Domain class modelDomain class model
Domain class modelshekharsj
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9koolkampus
 
Architectural styles and patterns
Architectural styles and patternsArchitectural styles and patterns
Architectural styles and patternsHimanshu
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwordsramesh517
 

What's hot (20)

UML
UMLUML
UML
 
Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling Techniques
 
6 class design
6 class design6 class design
6 class design
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Gof design patterns
Gof design patternsGof design patterns
Gof design patterns
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
OOAD
OOADOOAD
OOAD
 
Uml Common Mechanism
Uml Common MechanismUml Common Mechanism
Uml Common Mechanism
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Uml
UmlUml
Uml
 
Domain class model
Domain class modelDomain class model
Domain class model
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
Architectural styles and patterns
Architectural styles and patternsArchitectural styles and patterns
Architectural styles and patterns
 
Object modeling
Object modelingObject modeling
Object modeling
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 

Viewers also liked

Object diagram
Object diagramObject diagram
Object diagramRahul Pola
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++rprajat007
 
ITFT-Classes and object in java
ITFT-Classes and object in javaITFT-Classes and object in java
ITFT-Classes and object in javaAtul Sehdev
 
classes & objects introduction
classes & objects introductionclasses & objects introduction
classes & objects introductionKumar
 
Class & Object - Intro
Class & Object - IntroClass & Object - Intro
Class & Object - IntroPRN USM
 
Using class and object java
Using class and object javaUsing class and object java
Using class and object javamha4
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationshipsPooja mittal
 
PROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOTPROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOTTushar Dhoot
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringS.M. Murad Hasan Tanvir
 
Three state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power pointThree state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power pointSlideTeam.net
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagramweichen
 
Student Portal Example
Student Portal ExampleStudent Portal Example
Student Portal Exampletianaphoto
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objectsrahulsahay19
 

Viewers also liked (20)

Object diagram
Object diagramObject diagram
Object diagram
 
Object and class
Object and classObject and class
Object and class
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
ITFT-Classes and object in java
ITFT-Classes and object in javaITFT-Classes and object in java
ITFT-Classes and object in java
 
classes & objects introduction
classes & objects introductionclasses & objects introduction
classes & objects introduction
 
Class & Object - Intro
Class & Object - IntroClass & Object - Intro
Class & Object - Intro
 
Using class and object java
Using class and object javaUsing class and object java
Using class and object java
 
My ppt
My pptMy ppt
My ppt
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
PROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOTPROJECT FOR CSE BY TUSHAR DHOOT
PROJECT FOR CSE BY TUSHAR DHOOT
 
Django Shop
Django ShopDjango Shop
Django Shop
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineering
 
Three state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power pointThree state transition diagram flow chart slides power point
Three state transition diagram flow chart slides power point
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
class diagram
class diagramclass diagram
class diagram
 
Student Portal Example
Student Portal ExampleStudent Portal Example
Student Portal Example
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objects
 
State Diagram
State DiagramState Diagram
State Diagram
 

Similar to Class and object_diagram

Similar to Class and object_diagram (20)

UML-Advanced Software Engineering
UML-Advanced Software EngineeringUML-Advanced Software Engineering
UML-Advanced Software Engineering
 
432
432432
432
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Object oriented analysis and design unit- iv
Object oriented analysis and design unit- ivObject oriented analysis and design unit- iv
Object oriented analysis and design unit- iv
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
Sda 7
Sda   7Sda   7
Sda 7
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Architecture and design
Architecture and designArchitecture and design
Architecture and design
 
SE - System Models
SE - System ModelsSE - System Models
SE - System Models
 
Ch8
Ch8Ch8
Ch8
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
OOP_Module 2.pptx
OOP_Module 2.pptxOOP_Module 2.pptx
OOP_Module 2.pptx
 
Object-oriented modeling and design.pdf
Object-oriented modeling and  design.pdfObject-oriented modeling and  design.pdf
Object-oriented modeling and design.pdf
 
Software Design Patterns - An Overview
Software Design Patterns - An OverviewSoftware Design Patterns - An Overview
Software Design Patterns - An Overview
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
Different Types Diagrams
Different Types Diagrams  Different Types Diagrams
Different Types Diagrams
 

More from Sadhana28

Study of fluids
Study of fluidsStudy of fluids
Study of fluidsSadhana28
 
segmentation
segmentationsegmentation
segmentationSadhana28
 
JSP Processing
JSP ProcessingJSP Processing
JSP ProcessingSadhana28
 
Digital signature
Digital signatureDigital signature
Digital signatureSadhana28
 
Adjustment of inheritance
Adjustment of inheritanceAdjustment of inheritance
Adjustment of inheritanceSadhana28
 
Inferno operating system
Inferno operating systemInferno operating system
Inferno operating systemSadhana28
 
Process monitoring and_audit_sadhana
Process monitoring and_audit_sadhanaProcess monitoring and_audit_sadhana
Process monitoring and_audit_sadhanaSadhana28
 
Bluejacking sadhana
Bluejacking sadhanaBluejacking sadhana
Bluejacking sadhanaSadhana28
 
Quality attributes sadhana
Quality attributes sadhanaQuality attributes sadhana
Quality attributes sadhanaSadhana28
 

More from Sadhana28 (12)

Study of fluids
Study of fluidsStudy of fluids
Study of fluids
 
segmentation
segmentationsegmentation
segmentation
 
colorimage
colorimagecolorimage
colorimage
 
kerberos
kerberoskerberos
kerberos
 
JSP Processing
JSP ProcessingJSP Processing
JSP Processing
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Adjustment of inheritance
Adjustment of inheritanceAdjustment of inheritance
Adjustment of inheritance
 
Inferno operating system
Inferno operating systemInferno operating system
Inferno operating system
 
Process monitoring and_audit_sadhana
Process monitoring and_audit_sadhanaProcess monitoring and_audit_sadhana
Process monitoring and_audit_sadhana
 
Bluejacking sadhana
Bluejacking sadhanaBluejacking sadhana
Bluejacking sadhana
 
Dhtml
DhtmlDhtml
Dhtml
 
Quality attributes sadhana
Quality attributes sadhanaQuality attributes sadhana
Quality attributes sadhana
 

Recently uploaded

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
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
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
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
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

Class and object_diagram

  • 1. CLASS AND OBJECT DIAGRAMS Submitted by: Sadhana Singh M.Tech(S.E.)
  • 2. Contents  Introduction about Class Diagram  Common Uses of Class Diagram  Common Modeling Techniques for Class Diagram  Introduction about Object Diagram  Common Uses of Object Diagram  Common Modeling Techniques for Object Diagram  Difference between class and object diagram
  • 3. Introduction about Class Diagram  Found in modeling object oriented system.  Use to model static design view of a system.  Main building block of Object Oriented Modeling.  Describes the type of objects in system.  In the diagram these classes are represented with boxes which contain three parts ◦ The upper part holds the name of the class ◦ The middle part contains the attributes of the class ◦ The bottom part gives the methods or operations the class can take or undertake
  • 5. Common Uses of Class Diagram  To model the vocabulary of system.  To model simple collaborations.  To model a logical database schema.
  • 6. Common Modeling Techniques for Class Diagram  Modeling simple collaborations.  Modeling a logical database schema.  Forward and Reverse Engineering.
  • 7. Modeling simple collaborations  Identify the mechanism we had like to model.  For each mechanism, identify the classes, interfaces, and other collaborations that participate in this collaboration.  Use scenarios to walk through these things.  To populate these elements with their contents.
  • 8.
  • 9. Modeling a logical database schema  Identify those classes in our model whose state must transcend the lifetime of their application.  Create a class diagram that contains these classes and mark them as persistent.  Expand the structural details of these classes.  Watch for common patterns that complicate physical database design.  Consider also the behavior of these classes by expanding operations.  Use tools to help we transform our logical design into a physical design.
  • 10.
  • 11. Forward and Reverse Engineering Forward Engineering  Identify the rules for mapping to our implementation language or languages of choice.  Depending on the semantics of the languages we choose, we may have to constrain our use of certain UML features.  Use tagged values to specify our target language.  Use tools to forward engineer our models.
  • 12.
  • 13. Forward engineering the class EventHandler yields the following code. public abstract class EventHandler { EventHandler successor; private Integer currentEventID; private String source; EventHandler() {} public void handleRequest() {} }
  • 14. Reverse Engineering  Identify the rules for mapping from our implementation language or languages of choice.  Using a tool, point to the code we had like to reverse engineer.  Using our tool, create a class diagram by querying the model.
  • 15. Introduction about Object Diagram  Gives snapshots of the system.  Shows a complete or partial view of structure of a modeled system at specific time.  Derived from class diagrams.  Represent an instance of class diagrams.  To model the static design view.
  • 16. Common Uses of Object Diagram To model object structure.
  • 17. Common Modeling techniques for Object Diagram  Modeling object structures.  Forward and Reverse Engineering.
  • 18. Modeling object Structures  Identify the mechanism we had like to model.  For each mechanism, identify the classes, interfaces, and other elements that participate in this collaboration; identify the relationships among these things, as well.  Consider one scenario that walks through this mechanism.  Expose the state and attribute values of each such object, as necessary, to understand the scenario.  Similarly, expose the links among these objects, representing instances of associations among them.
  • 19.
  • 20. Forward and Reverse Engineering Reverse Engineering  We’ll set your context inside an operation or relative to an instance of one particular class.  Using a tool or simply walking through a scenario, stop execution at a certain moment in time.  Identify the set of interesting objects that collaborate in that context and render them in an object diagram.  As necessary to understand their semantics, expose these object's states.  As necessary to understand their semantics, identify the links that exist among these objects.
  • 21. Difference between Class and Object Diagrams  A class diagram is a graph of Classifier elements connected by their various static relationships whereas an object diagram is a graph of instances, including objects and data values.  Class diagrams can contain objects, so a class diagram with objects and no classes is an object diagram.  Class diagrams are the blueprints of your system or subsystem whereas object diagram shows a snapshot of the detailed state of a system at a point in time.