3
Given a class A, let us say that the relation between this class A and a class B is composition, where A is the class "all" and B is the class "part". Given a third class C, can there be another composition between B and C, so that in this new relationship C is the "whole" and B is the "part"? Here is an example below of how this would look in the class diagram:
Another question: having a class B is it possible that it relates to a class A by means of a composition and a class C by means of an aggregation? Here is an example below of how this would look in the class diagram: