Home » Software Engineering

Object Diagram | Software Engineering

This article is all about Object Diagram. In this article, we will briefly study the purpose of object diagram, symbol, and notations, etc. and how they are represented?
Submitted by Monika Sharma, on November 04, 2019

What is an Object Diagram?

An object is a real-world problem entity whose activities are defined by the classes. The Object is a specimen of a particular moment in runtime, plus objects and data ethics or values. A steady UML object diagram is an example of a class diagram; it shows a snap of the detailed state of a system at a point in time, thus an object diagram circumscribe objects and their relationships at a point in time. It may examine a special case of a class diagram or a communication diagram.

Notation of the Object Diagram

Object Diagram | 1


The Motive of Object Diagram

  1. It is used to represent the occurrence of the class. You might create a class diagram to present the structure and then create a set of objectives.
  2. It is used to understand the activity or working of an object.

In summary, the relation between the instantiated class and the defined class is been shown by the Object diagram. The best way to exemplify what an object diagram looks like is to show the object diagram generated from a similar class diagram.

Object Diagram Notation

  1. Name: Every object is represented like a rectangle, that offers the name from the object and its class emphasize as well as divided with a colon.
  2. Attributes: Similar to classes, you can list object characteristics inside a separate section. However, unlike classes, object credit should have values given to them.
  3. Links: Links tells to be an example associated with the relationship. You can draw a link while using the lines utilized in class diagrams.

Steps for drawing Object diagram

A communication diagram called collaboration in the previous version of UML without comment is known as an object diagram. An object diagram must be a valid actualization of a fixed class diagram. This can be used as a fast regularity check. To do this we can develop an object diagram by using the following steps:

  • Recognize the mechanism you'd like to draw. An apparatus constitute some functions or behaviors of the part of the system you are modeling.
  • Show the state and accredit values of each such object, as necessary, to understand the scene.

Instance specification

Each object and link on an object diagram is presented by a current quality. This can show an object's classifier e.g. an abstract or concrete class and instance name, as well as attributes and other structural features using slots. Each part corresponds to a single meaning or feature and may include a value for that state.

The name on an instance specification optionally shows an instance name, separator, and not compulsory one or more classifier names separated by commas.

Object diagram example

Object Diagram | 2

Image source: https://cloud.smartdraw.com/editor.aspx?templateId=680993af-b8b1-48a9-8fce-3f57a65eb834&noro=1&nsu=1






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.