Skip to content

Analysis and implementation of the Adapter Design Pattern

Notifications You must be signed in to change notification settings

AminEhsan/DesignPattern-Adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Design Pattern Adapter

Analysis and implementation of the Adapter Design Pattern

Adapter

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

How to run Python

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