aggregation2 Composite Pattern - 구조, 개별 객체와 복합객체를 통합적으로 다루기, children의 저장 순서가 요구될 때 / ex) 메뉴 | Design Pattern 디자인 패턴 Composite Pattern Treat individual objects and Composite of objects uniformly. 개별 객체와 복합 객체를 클라이언트에서 동일하게 사용 child가 parent에 대한 참조자를 가지면 - tree traversal이 용이해지며 - child 자신이 제거되기를 원하는 경우 편리함 children의 저장 순서가 요구되는 경우 Composite Object (복합 객체) 사용자 정의 클래스를 도메인으로 하는 속성을 가진 객체 복합 객체 시스템에서 기본으로 제공하지 않는 사용자 정의 클래스(user-defined class)를 도메인으로 하는 속성을 가진 객체를 복합 객체(composite object)라 한다. 복합 객체에서 사용자 정의 클래스를 도메.. 2021. 10. 14. [Design Pattern] 디자인 패턴 / UML Base .java 2021.09 디자인 패턴 강의 정리 UML A standard language for writing software blueprints 어휘 (Vocabularies) 세 종류의 Building block 으로 구성된다. - Things , Relationships, Diagrams Things Structural things 모델의 정적 부분 (개념적 요소)을 나타냄 interface, class, Behavioral things 모델의 동적 부분 (행동)을 나타냄 interaction (객체간 messaging), Grouping things organizational part package and its variations Annotational things explanatory part note.. 2021. 9. 11. 이전 1 다음