연관 관계
Association
ClassA가 ClassB를 멤버변수로 가지는 경우
집합 관계
Aggregation
- Association with a whole-part relationship
- Weak Association
ClassA가 ClassB를 멤버변수로 가지지만 ClassA가 사라져도 ClassB는 남아있을 수 있다
Composition
- Aggregation where the lifecycle of the part class depends on that of the whole class
- Strong Association
ClassA가 ClassB를 멤버변수로 가지고, ClassA가 사라지면 ClassB도 사라진다