When one class has another class in it and the dependent class can't exist without the super class, this is a composition relationship. For example, a bank account can't exist without a bank, as shown in the following diagram:
When one class has another class in it and the dependent class can't exist without the super class, this is a composition relationship. For example, a bank account can't exist without a bank, as shown in the following diagram:
18.189.170.134