FACADE 퍼사드
 -복잡한 서브클래스들을 인터페이스를 통해 쉽게 사용 가능하도록 함. 종속성 최소화.
 -퍼사드를 창구라고도 하며, 창구를 만들어 인터페이스를 모아 둔다.




class SubSystemA{ public: void operation() { cout << "SubSystemA Operation" << endl;} }; class SubSystemB{ public: void operation() { cout << "SubSystemB Operation" << endl;} }; class SubSystemC{ public: void operation() { cout << "SubSystemC Operation" << endl;} }; class Facade{ public: Facade(SubSystemA* a , SubSystemB* b, SubSystemC* c) : SysteamA(a), SysteamB(b), SysteamC(c) {} void operation() { SysteamA->operation(); SysteamB->operation(); SysteamC->operation(); } private: SubSystemA* SysteamA; SubSystemB* SysteamB; SubSystemC* SysteamC; }; int main(){ SubSystemA A; SubSystemB B; SubSystemC C; Facade _Facade(&A, &B, &C); _Facade.operation(); return 0; }


+ Recent posts