UML-class diagram

Source: Internet
Author: User

A class chart is a type of static view. A class chart describes a static relationship. In my opinion, a class chart is a process of finding and drawing relationships. It is so difficult to find a class in this process.

The following figure shows the elements in the class diagram:

AboutUMLOfArticleIt is summarized after all the images are drawn.,Let's look back at the class diagram.,ThinkUMLThe most important thing is the class diagram.,Because class diagrams are also used for other graphs..Drag a class in a class chart,Add appropriate relationships for them,Will be formedUMLAnother graph.

There are three types of classes: entity class, boundary class, and control class.

Entity classes are usually the most meaningful classes for users. For example, in the Course Selection System, the student class can be abstracted, and the student class is the entity class.

The boundary class is located at the junction of the system and the outside world, including interfaces of all forms, reports, printers, scanners, and other hardware and interfaces with other systems.

The control class is responsible for coordinating other jobs.

After learning about classes and class diagrams, I began to draw class diagrams. This is really a headache. When I was writing a document, I felt very eager to draw a UML diagram, because it was useful at that time, but now I have a chance, and I really didn't know how to start it. I also read the class pictures drawn by others, but they said that you should first draw class pictures by yourself and then compare them with others. Otherwise, your thoughts may be influenced by others, the class diagrams drawn will also be affected, which is not the result of your own summary. This is really the case. When you are not familiar with one thing, your understanding is the most vulnerable to others, so you will not have your own understanding.

At the beginning, it is hard to draw a picture with a hard head.

Let's share my class diagram below.

This figure is the "work" that has not been accepted after many modifications. This class chart has many problems. I hope to learn more about the class chart after the hierarchy.

The figure above cannot be implemented.CodeIf it is rejected, re-draw the image. The figure below shows the class chart that has been successfully accepted. There are many shortcomings. I hope you will give more valuable comments.

Step by step.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.