An open API service indexing awesome lists of open source software.

https://github.com/aminehsan/designpattern-adapter

Analysis and implementation of the Adapter Design Pattern
https://github.com/aminehsan/designpattern-adapter

adapter adapter-design-pattern computer-software-engineer design-pattern

Last synced: 11 months ago
JSON representation

Analysis and implementation of the Adapter Design Pattern

Awesome Lists containing this project

README

          

# Design Pattern Adapter
> Analysis and implementation of the Adapter Design Pattern

![Adapter](https://github.com/AminEhsan/DesignPattern-Adapter/blob/main/1.png)

Adapter is a structural design pattern that allows objects with incompatible interfaces to collaborate.

## How to run Python
```bash
python main.py
```

#### Output :
> Client: I can work just fine with the Target objects:
> Target: The default target's behavior.

> Client: The Adaptee class has a weird interface. See, I don't understand it:
> Adaptee: .eetpadA eht fo roivaheb laicepS

> Client: But I can work with it via the Adapter:
> Adapter: (TRANSLATED) Special behavior of the Adaptee.

#### Structure :
```
├── main.py
```