Home  >  Article  >  How to draw a class diagram?

How to draw a class diagram?

烟雨青岚
烟雨青岚Original
2020-06-18 09:27:1619445browse

How to draw a class diagram?

#How to draw a class diagram?

Steps:

#1. Open the visio drawing software and select the "Software" option in the navigation on the left. There will be many diagrams on the right, we will see UML diagrams, click to select to enter.

How to draw a class diagram?

2. We will enter the drawing interface. There is a percentage option in the navigation area above. The default drawing area is relatively small. We can adjust the percentage to make it more convenient for ourselves to draw. .

How to draw a class diagram?

3. There are many related components in the navigation on the left. Just click on the title to expand it. We can choose the classes and dependencies we want according to our needs. If you are familiar with it, you can also search for the component you are thinking of.

How to draw a class diagram?

#4. Find the component you need, left-click the mouse to select it, hold down the mouse, drag it directly to the drawing area on the right where you want to place it, and then release it. If you need the same one, you can click on the component that has been dragged to the right, copy and paste it.

How to draw a class diagram?

#5. The component needs to change its name. As long as we double-click the mouse, we can change the component's name, attributes, and get the component name we want, etc.

How to draw a class diagram?

6. Dependency is a relationship commonly used in UML class diagrams. It shows that changes in the specification of one thing may affect another transaction that uses it, but vice versa. otherwise. The dependency relationship is expressed as a dotted arrow. The element at the end of the arrow depends on the element at the head of the arrow, which is a use-a relationship.

How to draw a class diagram?

#7. Association relationships are also commonly used relationships. Association is used to describe the connection between classes and is a has-a relationship.

How to draw a class diagram?

8. We only need to carefully clarify the relationship between each module and write a rough draft. Then based on the draft, we can easily know the relationship between each other and draw To draw UML class diagrams, the prerequisite is to master the basic concepts related to UML class diagrams.

How to draw a class diagram?

For more related knowledge, please visit PHP Chinese website! !

The above is the detailed content of How to draw a class diagram?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn