Adapter Design Pattern (UML Class Diagram)
If you want to make existing code work with another existing code without modifying any of the existing interfaces you can use Adapter design pattern.
Adapter is a software design pattern that allows the interface of an existing class to be used as another interface. You can use it if you want to make existing classes work with others and you cannot or does not want to change their code.
Adapter Design Pattern (UML Diagram)