This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| design_pattern:adapter_pattern [2017/10/29 13:08] – ledyx | design_pattern:adapter_pattern [2024/02/05 13:16] (current) – [Target, Adapter] ledyx | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * 다른 용도로 감싸기때문에 ' | * 다른 용도로 감싸기때문에 ' | ||
| - | {{tag> | + | {{tag> |
| = 상속을 이용한 구현 = | = 상속을 이용한 구현 = | ||
| Line 89: | Line 89: | ||
| * 필요한, 변환될 것. Target | * 필요한, 변환될 것. Target | ||
| */ | */ | ||
| - | public | + | public |
| - | public abstract | + | void printMessage(); |
| - | public abstract | + | void printVersion(); |
| } | } | ||
| </ | </ | ||
| Line 99: | Line 99: | ||
| * 필요한, 변환될 것의 구현체. Adapter | * 필요한, 변환될 것의 구현체. Adapter | ||
| */ | */ | ||
| - | public class NewVerAPIImpl | + | public class NewVerAPIImpl |
| private OldVerAPI oldVerAPI; | private OldVerAPI oldVerAPI; | ||