I can't seem to find this existing question but feel free to point me to it.
Imagine the following situation of a familiar fairy tale:
------------ -------------
| Bear |--------<>| BearHouse |
|------------| |-------------|
|+name:string| |+mama: Bear |
------------ |+papa: Bear |
|+baby: Bear |
-------------
- Is this considered aggregation or composition? (I would assume composition)
- If composition, does a single black-diamond line suffice, or should I use 3 of them?
I just want to be sure my class diagram is accurate, or at least more meaningful.
Thank you