Skip to content

Files

Latest commit

43e5eae · May 31, 2024

History

History

Adapter

Adapter Pattern

Structural Type

Use cases:

converts the interface of one object so that another object can understand it.

Classes

  • Adapter - the middle class between 3rd party library class(Service class) and client class
  • Service - the 3rd party class

Interfaces

  • ClientInterface - describe the rules that other class should follow it

Visual Diagram

Visual Diagram Composite Pattern

image by refactoring guru