We use the term composition to refer to relationships whose objects don't have an independent life cycle, and if the parent object is deleted, all child objects will also be deleted.
Let's take an example of the relationship between questions and answers. Single questions can have multiple answers, and answers cannot belong to multiple questions. If we delete questions, answers will automatically be deleted.
Objects with a dependent life cycle (answers in the example) are known as weak entities.
Sometimes, it can be a complicated process to decide if we should use association, aggregation, or composition. This difficulty is caused ...