Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
design_pattern:bridge_pattern [2017/10/29 06:41] – [Bridge Pattern] ledyxdesign_pattern:bridge_pattern [2021/02/07 03:25] (current) – [Bridge Pattern] ledyx
Line 11: Line 11:
     * <fc red>**__하위 클래스를 만들려고 할 때__,** **__기능을 추가하려는가? 구현을 하려는가?__**</fc>     * <fc red>**__하위 클래스를 만들려고 할 때__,** **__기능을 추가하려는가? 구현을 하려는가?__**</fc>
   * 언제 쓰지? 장점?   * 언제 쓰지? 장점?
 +    * 예를 들어 어떤 프로그램을 배포하는데 각 OS별로 **의존(구현 계층)**하는 부분이 다른 경우
     * 기능 계층과 구현 계층 따로 확장이 가능하고, 한 계층을 수정하는 데 다른 계층을 전혀 수정할 필요가 없음!     * 기능 계층과 구현 계층 따로 확장이 가능하고, 한 계층을 수정하는 데 다른 계층을 전혀 수정할 필요가 없음!
  
-{{tag>Architecture Modeling Structional}}+{{tag>Architecture Modeling Design_Pattern Structural}}
  
 = 기능의 클래스 계층 = = 기능의 클래스 계층 =
Line 22: Line 23:
  
 public class Display { public class Display {
- private DisplayImpl impl;+ private DisplayImpl impl; // 위임(떠넘기기). Loose Coupling.
  
  public Display(DisplayImpl impl) {  public Display(DisplayImpl impl) {
design_pattern/bridge_pattern.1509259307.txt.gz · Last modified: (external edit)