Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the symbols of UML class diagram

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "UML class diagram symbols", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the UML class diagram symbols" this article.

A brief introduction to UML Class Diagram symbols

1. Class (Class): represented by a three-layer rectangular box.

The first layer displays the name of the class, or italics if it is an abstract class.

The second layer is the fields and properties.

The third layer is the method of the class.

Notice the previous symbol, + for public,- for private,'#' for protected.

The interface of 2.UML class diagram symbols: it is represented by two-layer rectangular boxes, which is mainly different from the class diagram in that it is displayed at the top.

The first line is the interface name.

The second line is the interface method.

The inheritance class (extends) of 3.UML class diagram symbols: represented by hollow triangles + solid lines.

4.UML class diagram symbol implementation interface (implements): represented by hollow triangles + dashed lines

5.UML class diagram symbol association (Association): represented by solid line arrows, for example, swallows and climate

Aggregation of 6.UML class diagram symbols (Aggregation): represented by hollow diamond + solid line arrows

Aggregation: represents a weak 'ownership' relationship, indicating that An objects can contain B objects, but B objects are not part of An objects, such as companies and employees

Composition: represented by a solid diamond + solid line arrow

Combination: the relationship between the part and the whole, and the life cycle is the same. For example: people and hands

7.UML class diagram symbol dependence (Dependency): represented by dotted arrows, such as animals and oxygen

Cardinality of 8.UML class diagram symbols: the numbers at both ends of the connection indicate that there can be several instances of the class at this end, for example, a bird should have two wings. If a class may have countless instances, it is represented by "n". Association, aggregation and combination have cardinality.

The above is all the content of the article "what are the symbols of the UML class diagram?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report