This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| design_pattern:adapter_pattern [2021/02/07 03:24] – [Adapter Pattern] ledyx | design_pattern:adapter_pattern [2024/02/05 13:16] (current) – [Target, Adapter] ledyx | ||
|---|---|---|---|
| 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; | ||