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
 
Advanced behavioral modeling chapter 4 of omd
Advanced behavioral modeling chapter 4 of omdAdvanced behavioral modeling chapter 4 of omd
Advanced behavioral modeling chapter 4 of omdjayashri kolekar
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringMeghaj Mallick
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramNikhil Pandit
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UMLKumar
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesionSutha31
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptKunal Kishor Nirala
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering conceptsKomal Singh
 
Organized and disorganized complexity
Organized and disorganized complexityOrganized and disorganized complexity
Organized and disorganized complexityVostrikov Arkady
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Gof design pattern
Gof design patternGof design pattern
Gof design patternnaveen kumar
 

What's hot (20)

Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model Refinement
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Advanced behavioral modeling chapter 4 of omd
Advanced behavioral modeling chapter 4 of omdAdvanced behavioral modeling chapter 4 of omd
Advanced behavioral modeling chapter 4 of omd
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software Engineering
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
Class Diagram
Class DiagramClass Diagram
Class Diagram
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Domain model
Domain modelDomain model
Domain model
 
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UML
 
Object model
Object modelObject model
Object model
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesion
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
 
Organized and disorganized complexity
Organized and disorganized complexityOrganized and disorganized complexity
Organized and disorganized complexity
 
Object diagram
Object diagramObject diagram
Object diagram
 
Uml
UmlUml
Uml
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Gof design pattern
Gof design patternGof design pattern
Gof design pattern
 

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
 
1st major project ppt
1st major project ppt1st major project ppt
1st major project pptDeborah Price
 

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
 
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
 
1st major project ppt
1st major project ppt1st major project ppt
1st major project ppt
 

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
 
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
 
Uml diagram assignment help
Uml diagram assignment helpUml diagram assignment help
Uml diagram assignment help
 

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

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

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.