
Adapter Design Pattern
Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=lAzRy8_qMi0
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
Other Videos By SBCODE
2020-08-23 | Zabbix : Reading Windows Event Logs in Zabbix |
2020-08-22 | Graph Non Time Series Data in Grafana 7 |
2020-08-22 | Grafana : Custom MySQL Time Series Queries |
2020-08-21 | Custom MySQL Time Series Queries in Grafana 6 |
2020-08-19 | Install MySQL Dashboard and Collector in Grafana 7 |
2020-08-18 | Grafana : Create MySQL Data Source in Grafana |
2020-08-17 | Proxy Design Pattern |
2020-08-17 | Composite Design Pattern |
2020-08-17 | Facade Design Pattern |
2020-08-17 | Decorator Design Pattern |
2020-08-17 | Adapter Design Pattern |
2020-08-17 | Mediator Design Pattern |
2020-08-17 | Iterator Design Pattern |
2020-08-17 | Observer Pattern |
2020-08-17 | Graph Non Time Series Data in Grafana 6 |
2020-08-17 | Grafana : Bind SSL to your Grafana Nginx Proxy |
2020-08-17 | Grafana : Reverse Proxy Grafana with Nginx |
2020-08-17 | Grafana : Point a Domain Name to your Grafana Server |
2020-08-17 | Grafana : Install and Start Grafana 7 |
2020-08-16 | Threejs TypeScript : Introduction |
2020-08-15 | Change Grafana Default Port |
Tags:
python
design patterns
adapter design pattern
B08XLJ8Z2J