In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to analyze the five major UML relationship types. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
UML relationship type
Relationship type
Five relationships can be established between classes: Association, dependency, accumulation, implementation, and generalization.
Association
Association is the lexical connection between classes, which makes one class know the common properties and operations of another class, and there is a fixed corresponding relationship between the instances of the two classes. Associations can be one-way or two-way. For the association relationship RSA, put the attribute into the class.
Dependence
Dependencies show that one class references another. Therefore, a change in the reference class specification may affect the use of the class. When two classes have dependencies, RSA does not add attributes to the classes of the relationship, which is one of the differences between associations and dependencies. Dependence is always one-way.
Accumulate
The cumulative relationship is a strong correlation. The cumulative relationship is the relationship between the whole and the individual.
Realize
The implementation relationship shows the relationship between classes and interfaces, packages and interfaces, components and interfaces, and use cases and use case implementations. The implementation relationship associates the interface with the implementation.
Drawing is that the implementation class points to the dotted line of the interface and adds a triangle to point to the interface
Generalization
A generalized relationship shows the inheritance relationship between two model elements, such as roles, use cases, classes, or packages. In UML, inheritance relationships are called generalizations and are displayed as arrows from the subclass to the parent class.
Drawing is that the subclass points to the implementation of the parent class, plus a triangle that points to the parent class.
The above is the editor for you to share how to analyze the five major UML relationship types, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.