UML Class and Object Diagrams Overview
Posted Jed_SH
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.
Diagram of Implementation Classes
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 objects, slots with value specifications, and links (instances of association).
Object diagram overview - instance specifications, value specifications, slots, and links.
https://www.uml-diagrams.org/class-diagrams-overview.html
以上是关于UML Class and Object Diagrams Overview的主要内容,如果未能解决你的问题,请参考以下文章
Java6.2 类和对象 Class and Object 03 修饰符
016: class, objects and instance: method