Container

Adapter

Description

See 'Adapter' in GoF. Structural pattern adaptation.

Where to use

  • Legacy support.

Real World Example

Legacy wrapper.

Code Example

class Adapter:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Adapter')