LearningTech

Container

Adapter

Description

See 'Adapter' in GoF. Structural pattern adaptation.

Where to use

  • Legacy support.

Real World Example

Legacy wrapper.

Code Example

class Adapter:
    def __init__(self):
        pass

    def execute(self):
        print('Executing Adapter')