Object-Class Diagram - PowerPoint PPT Presentation

About This Presentation
Title:

Object-Class Diagram

Description:

An Introduction – PowerPoint PPT presentation

Number of Views:27
Slides: 11
Provided by: Username withheld or not provided
Tags:

less

Transcript and Presenter's Notes

Title: Object-Class Diagram


1
Structural DiagramsDifference B/W Object
Class Diagram
  • Submitted To
  • Sir INAM_UL_HAQ
  • Submitted By
  • Zunaira Gohar(1004)
  • University of Okara Renala Khurd

2
Table of Contents
  • Class Diagram
  • Purpose of Class Diagram
  • Explain class Diagram with Example
  • Object Diagram with Example
  • Difference B/W Class Diagram Object Diagram

3
Class Diagram
  • The class model captures the static view of an
    system
  • by characterizing the objects in the system
  • the relationship between the objects
  • and the attributes and operations for each class
    of object
  • Class diagrams can also be used for data modeling

4
Cont
  • describes the attributes and operations of a
    class and also the constraints imposed on the
    system.
  • widely used in the modeling of object oriented
    systems
  • The class diagram shows a collection of classes,
    interfaces, associations, collaborations and
    constraints. It is also known as a structural
    diagram.

5
Purpose of Class Diagram
  • The purpose of the class diagram can be
    summarized as
  • To describe objects.
  • Analysis and design of the static view of an
    application.
  • Describe responsibilities of a system.
  • Base for component and deployment diagrams.

6
Class Diagram
  • Example

Class Name
Attributes
Operations
7
Class Diagram
  • Example 2
  • Concept Super Sub Class

8
Object Diagram
  • Object
  • An object diagram shows individual objects and
    their relationships
  • Helpful for documenting test cases
  • A class diagram corresponds to an infinite set of
    object diagrams.

JoeSmithPerson
MaySharpPerson
Person
9
Difference B/W Class Object Diagram
  • First, there is the division of class and object.
  • A class is an abstraction
  • an object is one concrete manifestation of that
    abstraction.
  • In the UML, you can model classes as well as
    objects, as shown in following Figures

10
Class and Object
Write a Comment
User Comments (0)
About PowerShow.com