컴포지트 패턴 (Composite Pattern)
Gof Design Pattern 2014. 1. 28. 09:49
Composite Pattern - 컴포지트 패턴 객체와 객체의 그룹을 구분없이 하나의 인터페이스로 다룰 수 있게 한다.객체(Leaf)와 구성(Composite)을 트리로 구성하여 하나의 인터페이스에서 사용하도록 고려한 패턴이다. 샘플 코드) Colored By Color Scripter™123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566#include //------------------------------------------------------------------// Component 인터페이스class Component{pu..