UML association understanding problem

前端 未结 4 1831
一向
一向 2021-02-04 15:24

I\'ve been using UML for a while and I\'ve read few articles, books, forums about it but I still don\'t REALLY understand when two classes should be connected with association l

4条回答
  •  佛祖请我去吃肉
    2021-02-04 15:56

    I typically use two different connectors in UML:

    1. When a class is dependent on the implementation of another. This would imply that a class is creating or handling an instance of another. So the calling class is dependent on the implementation class. This would be evident in all of your examples.

    2. When a class extends or implements another.

提交回复
热议问题