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 ".