UML-object Diagram

Source: Internet
Author: User

I haven't studied UML for many days because of the exam, and I feel a little unfamiliar. So hurry up and make up for my inner emptiness. We have to take the test this afternoon, and there is still nearly two hours in the middle. Now I will share with you my understanding of the object diagrams in UML. Of course, I have concluded that I have never drawn any picture, in the future, we will add the picture in the fee system of the drawn data center.

 

Definition

Object digraphs)
Is to show the relationship between a group of objects and them. The object graph is used to describe the data structure. The static snapshots of instances such as classes or components in the class graph.

 

Object chart and class chart

 

An object graph is an instance of a class graph. It uses almost the same ID as a class graph. Their differences are:

An object is a specific entity that exists in time and control, and a class only represents an abstraction that abstracts the "essence" of an object"

  • A Class shares a public structure and a set of public behavior objects.
  • The class is static and the object is dynamic.
  • Class is generalized, and the object is personalized
  • Classes are definitions, and objects are instances.
  • Class is abstract, and the object is specific

 

Object diagram and cooperation Diagram

 

The object graph shows the relationship between objects at a certain time point. An object chart can be seen as a special use case of a class chart. instances and classes can be displayed in it. The object is also associated with the associated graph, and the cooperation graph shows the object prototype in the context

 

Representation

 

No separate form is required for object graphs. The class graph contains objects, so only the object and the class graph without class are an "object graph ".

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.