I have googled the difference between composition and aggregation in Java. I know the fact that the child class cannot live without the parent in the composition if the parent class got removed. However, I couldn't find anything about what would happen if a child class got removed in the composition and aggregation, will the parent class still exist? Since the child class is an important part forming the parent class in the composition, should I assume the parent will die if the child class got removed?
For example, we got human as a parent and heart as a child. If the heart class got removed, human should be removed. because human can't live without heart