Wednesday, October 27, 2004 08:55 AM
I have two classes Class1 and Class2.
An instance(object ) of Class1 has an instance(object) of Class2(i.e. aggregation).
There is a third class Class3, which uses an instance of Class1(dependency). Class3 also uses the instance of Class2 contained inside Class1 instance.
Now my question is: When I draw a class diagram, should I show only one dependency (i.e. Class3 dependson Class1) or 2 dependencies(Class1-Class3 and Class2-Class3)?
Please guide me.