Class Diagrams( What kind of Relation is this??)

N

nitin

Hi,

I have two queries about relations between classes in a
class diagram.They are as follows:

1. I have two classes class1 and class2. Class1 has a
method foo() which takes in a parameter of type Class2.


2. I have two classes class1 and class2.Class1 has a
method foo() which returns an object of type Class2.

..........
Now I would like to know what kind of relation exists
between Class1 and Class2 in oth the cases.Remember that
Class2 does not exist as a member variable in Class1.

Thanks,
Nitin
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top