UML Class and Object Diagrams Overview

Class diagram is UML structure diagram which shows structure of the designed system at the level of classes and interfaces, shows their features特征,constraints 约束and relationships 关系- associations关联, generalizations泛化, dependencies依赖, etc.

Some common types of class diagrams are:

Object diagram could be considered as instance level class diagram which shows instance specifications of classes and interfaces (objects), slots with value specifications, and links (instances of association).

Domain Model Diagram

Domain diagram overview - classes, interfaces, associations, usage, realization, multiplicity.

Domain diagram overview - classes, interfaces, associations关联, usage使用, realization实现, multiplicity多重性.

原型类stereotyped class--原型指的是 UML 中为了强化共同特征而进一步进行的元素分类,<<…>>是用于指定原型的语法

原型类参照: https://www.cnblogs.com/yinhaiming/articles/1800685.html

泛化关系(Generalization)、组合关系(Composition)、聚合关系(Aggregation)、关联关系(Association)、多重性关联关系(Multiplicity)、读顺序reading order

Diagram of Implementation Classes

Elements of implementation class diagram  - classes, interfaces, associations, usage, realization.

Elements of implementation class diagram - classes, interfaces, associations, usage, realization.

Object Diagram

Object diagram was defined in now obsolete UML 1.4.2 Specification as "a graph of instances, including objects and data values. A static object diagram is an instance of a class diagram; it shows a snapshot of the detailed state of a system at a point in time." It also stated that object diagram is "a class diagram with objects and no classes."

UML 2.4 specification simply provides no definition of object diagram except that "the following nodes and edges are typically drawn in an object diagram: Instance Specification and Link (i.e., Association)."

Note, that UML 2.5 standard hierarchy of diagrams (see UML 2.5 diagrams overview), shows class diagrams and object diagrams as completely unrelated. Some other authoritative UML sources state that component diagrams and deployment diagrams containing only instance specifications are also special kinds of object diagrams.

Object diagram overview below shows some major elements of object diagram - named and anonymous instance specifications for objectsslots with value specifications, and links (instances of association).

Object diagram overview - instance specifications, value specifications, slots, and links.

Object diagram overview - instance specifications, value specifications, slots, and links.

 

https://www.uml-diagrams.org/class-diagrams-overview.html

原文地址:https://www.cnblogs.com/gujiande/p/9412884.html