uml - aggregation

from Lectures 2010/04/17 00:05
aggregation은 association의 하위 분류로, 집합적인 관계를 표시합니다. 연관관계를 가지는 클래스 객체와 라이프 사이클이 동일하지 않을 경우, aggregation 관계입니다.

1. class diagram


2. code
2.1 I.java
public class I {
    private ArrayList<J> array;
    public I() {
    }
    public void setArray(ArrayList<J> array) {
        this.array = array;
    }
}

2.2 J.java
public class J {
    private J j;
}


'Lectures' 카테고리의 다른 글

Reentrant 와 Thread-safe 의 차이  (0) 2010/04/29
uml - relationships image  (0) 2010/04/17
uml - aggregation  (0) 2010/04/17
uml - composition  (0) 2010/04/17
uml - denpendency  (0) 2010/04/11
Tag // ,