I. Dependency relationship simply understood, dependency is that a class A uses another Class B, which is accidental, temporary, and very weak, but changes in class B affect Class A. For example, if someone wants to cross the river, they need to borrow a boat, and the relationship between the man and the ship is dependent. At the code level, for Class B as a parameter, Class A is used in a method. In UML class diagram design, a dependency relationship is represented by a dashed line with an arrow pointing to Class B.
Dependency is a simple understanding that a dependency is a class A that uses another class B, which is accidental, temporary, and very weak, but changes in class B affect Class A. For example, if someone wants to cross the river, they need to borrow a boat, and the relationship between the man and the ship is dependent. At the code level, for Class B as a parameter, Class A is used in a method. In UML class diagram design, a dependency relationship is represented by a dashed line with an arrow pointing to Class B.
T small throw cc
Links: http://www.imooc.com/article/3915
Source: mu Net, Dependency simple understanding, dependency is a class A used to another class B, and the use of the relationship is contingency, temporary, very weak, but the change of Class B will affect the Class A. For example, if someone wants to cross the river, they need to borrow a boat, and the relationship between the man and the ship is dependent. At the code level, for Class B as a parameter, Class A is used in a method. In UML class diagram design, a dependency relationship is represented by a dashed line with an arrow pointing to Class B.
T small throw cc
Links: http://www.imooc.com/article/3915
Source: MU-Class Network
C # Inter-class relationships