UML Five Relations

1.Dependency

A Dependency exists between two elements if changes to one will affect the other.

Figure below shows a dashed arrow between the Shape class and the DrawingContext class. This is the dependency relationship. In Booch94 this was called a ‘using’ relationship. This relationship simply means that Shape somehow depends upon DrawingContext. In C++ this almost always results in a #include.

2.Association

 

posted @ 2011-01-31 15:11  izet  阅读(403)  评论(0编辑  收藏  举报