Hi Team,
Can you please help me in clarifying on my understanding of Association and Composition/Aggregation ?
As per the given definition , Association means - A can call B and B can call A. And Composition/Aggregation means A has instance of B.
My understanding is when we say We have composition relationship among A and B, We can have Association relationship as well because if A has an instance of B, A can call B and viceversa
And if we have association relationship between A and B, then A can call B and B can call B, for that A can get instance of B through function parameter in one of the method of A and call B’s method right? as A is not holding the instance of B in case of association relationship ?
Is this my understanding correct?