Hello,
I am a UML beginner. Couple questions about class and component diagram:
1. I have a
java application which includes several packages, each has a number of classes.
when I draw class diagram, should I put ALL classes from all packages in one graph, or should I draw a separate class diagrams for each package ? If I draw seperately, how to reflect the interaction among classes that reside in different packages ? Just by using component diagram ?
2. This question has nothing to do with the above one. Sometimes if I have simple scenario, say I have five classes A,B,C,D. All of their "relation" is just class A it uses class B instance to do something, and in class B it uses
class c instances to do someting,etc. that's it. Then in class diagram, should I use arrow connection or line connection to connect class A and class B ?
A->B->C->D or A-B-C-D ?
Thanks,
Ian