当前位置:网站首页>UML diagram memory skills
UML diagram memory skills
2022-07-06 08:49:00 【look-word】
What is? UML Class diagram
- Class Diagram: Used to represent class 、 Interface 、 The static relationship between instances
- Although the name is class diagram , But there are not only classes in the class diagram
Memory skills
UML Arrow direction :
From child to parent
I Believe Many students will have the same idea as me , Think that subclasses are based on parent classes , The arrow should point from the parent class to the child class
So how do we remember ?
- Subclasses need to be defined through extends Keyword to specify the parent class
- The subclass must know the definition of the parent class , But the parent class doesn't know the definition of the subclass
- Only by knowing the definition of the other party can we point to the other party
- So the direction of the arrow is that the subclass points to the parent
The meaning of line
Solid line --> Inherit Dotted line –> Realization
- You can see Wild geese are a class An interface implemented It points to the interface Because the interface doesn't know the definition of geese
- Duck is the parent of Donald Duck is just a subclass So it points to the parent duck
How to remember ?
- The hollow triangle represents : To inherit or implement
- Realization - Inherit : is a The relationship between , Extended purpose , Don't empty , It's very strong
- Dotted line - Realization : The dotted line represents ‘ Need to be ’ No entity
Solid line --> relation Dotted line –> rely on
- The relationship is stable , A real relationship , Iron elder brothers
- Indicates that one class object is associated with another class object
- Usually, there is another class object in a class as an attribute
- You can see The emergence of penguins is related to the climate So they are related
- Dotted line –> rely on
- Use it temporarily , be neither friendly nor aloof , with no reality whatever , not much , if any
- Represents a usage relationship , One class needs to implement functions with the help of another class
- Generally, one class uses another class as a parameter , Or as a return value
The diamond
- A diamond is a vessel for holding things ( Plates, for example )
polymerization ∶ It means you can put a lot of the same things in an empty vessel , Get together ( The class indicated by the arrow direction )
Combine ∶ It represents the existence of physical structure in the full vessel , go through thick and thin together
The relationship between the whole and the part
Weak relationship
Negative words : weak - empty
The relationship between the whole and the part , Compared with the relationship of aggregation , The relationship is stronger, and they have the same life cycle ,contains-a The relationship between
A strong relationship
Positive words ∶ strong - full
边栏推荐
- Crash problem of Chrome browser
- win10系统中的截图,win+prtSc保存位置
- 被破解毁掉的国产游戏之光
- 个人电脑好用必备软件(使用过)
- Promise 在uniapp的简单使用
- On the inverse order problem of 01 knapsack problem in one-dimensional state
- 【ROS】usb_cam相机标定
- LeetCode:剑指 Offer 04. 二维数组中的查找
- Niuke winter vacation training 6 maze 2
- Marathon envs project environment configuration (strengthen learning and imitate reference actions)
猜你喜欢
【ROS】usb_ Cam camera calibration
What is CSRF (Cross Site Request Forgery)?
Deep analysis of C language pointer
生成器参数传入参数
Using pkgbuild:: find in R language_ Rtools check whether rtools is available and use sys The which function checks whether make exists, installs it if not, and binds R and rtools with the writelines
【ROS】usb_cam相机标定
Double pointeur en langage C - - modèle classique
Trying to use is on a network resource that is unavailable
UML图记忆技巧
角色动画(Character Animation)的现状与趋势
随机推荐
LeetCode:劍指 Offer 42. 連續子數組的最大和
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
@JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
Computer cleaning, deleted system files
vb. Net changes with the window, scales the size of the control and maintains its relative position
移位运算符
[embedded] print log using JLINK RTT
Trying to use is on a network resource that is unavailable
Sublime text using ctrl+b to run another program without closing other runs
Light of domestic games destroyed by cracking
Tdengine biweekly selection of community issues | phase III
Revit secondary development Hof method calls transaction
On the inverse order problem of 01 knapsack problem in one-dimensional state
UML图记忆技巧
Using pkgbuild:: find in R language_ Rtools check whether rtools is available and use sys The which function checks whether make exists, installs it if not, and binds R and rtools with the writelines
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
使用latex导出IEEE文献格式
The harm of game unpacking and the importance of resource encryption
704 binary search
Purpose of computer F1-F12