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

Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model RefinementAnjan Kumar
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptxKarthigaiSelviS3
 
Cloud computing notes
Cloud computing notesCloud computing notes
Cloud computing notesSrinivasa Rao
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)Manoj Reddy
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualizationGokulnath S
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software EngineeringManish Kumar
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Cloud Computing Security Challenges
Cloud Computing Security ChallengesCloud Computing Security Challenges
Cloud Computing Security ChallengesYateesh Yadav
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented CommunicationDilum Bandara
 
Overview of computing paradigm
Overview of computing paradigmOverview of computing paradigm
Overview of computing paradigmRipal Ranpara
 
Multilayer & Back propagation algorithm
Multilayer & Back propagation algorithmMultilayer & Back propagation algorithm
Multilayer & Back propagation algorithmswapnac12
 
Software engineering mca
Software engineering mcaSoftware engineering mca
Software engineering mcaAman Adhikari
 
Building systems from off the shelf components
Building systems from off the shelf componentsBuilding systems from off the shelf components
Building systems from off the shelf componentsHimanshu
 

What's hot (20)

CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1
 
Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model Refinement
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptx
 
Ooad ch 4
Ooad ch 4Ooad ch 4
Ooad ch 4
 
Cloud computing notes
Cloud computing notesCloud computing notes
Cloud computing notes
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualization
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Cloud Computing Security Challenges
Cloud Computing Security ChallengesCloud Computing Security Challenges
Cloud Computing Security Challenges
 
Method overloading
Method overloadingMethod overloading
Method overloading
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
 
Overview of computing paradigm
Overview of computing paradigmOverview of computing paradigm
Overview of computing paradigm
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Cohesion and coupling
Cohesion and couplingCohesion and coupling
Cohesion and coupling
 
Multilayer & Back propagation algorithm
Multilayer & Back propagation algorithmMultilayer & Back propagation algorithm
Multilayer & Back propagation algorithm
 
Software engineering mca
Software engineering mcaSoftware engineering mca
Software engineering mca
 
Building systems from off the shelf components
Building systems from off the shelf componentsBuilding systems from off the shelf components
Building systems from off the shelf components
 

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
 
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
 
Ooad
OoadOoad
Ooad
 

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

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 

Recently uploaded (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

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.