Susantha7
Susantha7

Reputation: 936

class create another class and associate with it later delete it, how to show it in UML class diagram?

Let A and B are classes.

as a example for above scenario consider there is project manager and he is responsible for creating,editing,deleting project from the system

i know class A create class b can show in UML as dependency relationship

i have two questions

  1. how to represent class delete another class

  2. so there is both association and dependency relationship from A to B. How should this relationship be demonstrated on UML class diagram? Should I use booth association(straight line) and dependency(dashed line) relationships

Upvotes: 1

Views: 338

Answers (1)

qwerty_so
qwerty_so

Reputation: 36313

You simply put a multiplicity of 0..1 towards the association to B. And that's it. No extra dependency.

Upvotes: 1

Related Questions