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
- Host: GitHub
- URL: https://github.com/aminehsan/designpattern-adapter
- Owner: aminehsan
- Created: 2023-07-01T17:19:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T18:45:37.000Z (almost 2 years ago)
- Last Synced: 2025-02-15T02:13:08.905Z (over 1 year ago)
- Topics: adapter, adapter-design-pattern, computer-software-engineer, design-pattern
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Design Pattern Adapter
> Analysis and implementation of the Adapter Design Pattern

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
```