Design Patterns

Adapter Pattern

也稱為 Wrapper Pattern

Adapter Pattern 常用來轉換一個物件的 API 來接合另外一個物件的 API. 當我們的 output 並非另一方所能接受時, 這時就需要 adapter 的上場.

說明