Adapter Design Pattern

Adapter Design Pattern

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=lAzRy8_qMi0



Duration: 6:07
190 views
0


Adapter Design Pattern Article : https://medium.com/@sean_bradley/adapter-design-pattern-9755c5467c47

Design Patterns In Python Book : https://www.amazon.com/dp/B08XLJ8Z2J

The adapter design pattern solves these problems:

How can a class be reused that does not have an interface that a client requires?
How can classes that have incompatible interfaces work together?
How can an alternative interface be provided for a class?
In this lecture, I have 2 classes, they don't share the same interface. The client requires it's objects to use an already standardised interface.

So we need to create an adapter, that wraps the incompatible object, but implements the standardised interface.

#python
#pythonDesignPatterns







Tags:
python
design patterns
adapter design pattern
B08XLJ8Z2J