Question: Suppose classes C and D exist. A D object contains one instance variable which is an instance of class C. If we were modeling these
Suppose classes C and D exist. A D object contains one instance variable which is an instance of class C. If we were modeling these classes by drawing a UML class diagram, what type of relationship exists between C and D?
an aggregation relationship
a dependency relationship
a composition relationship
a generalization relationship
an inheritance relationsip
there is no relationship
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
