Adapters
An adapter is a design pattern that enables two incompatible interfaces to communicate with each other. It works by creating a wrapper class that contains a reference to the interface being adapted and then provides a standard interface to be used instead. Adapters allow for the creation of complex systems by allowing for flexible integration between components, as well as adding compatibility between components. For example, a USB adapter may be used to convert a USB-C connection to a USB-A connection, or an HDMI adapter may be used to convert HDMI connections to VGA connections.