Search code examples
oopumlclass-diagram

In UML class diagram can composition be bidirectional?


Can composition be bidirectional in a way that both classes are aware of each other?

And if not, what is the default direction of composition?


Solution

  • Yes, Composition does not add constraints with regards to the navigability of the association. More info on the difference between Accociation, Composition and Aggregations can be found here: UML Composition vs Aggregation vs Association