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 do not want to change their code.

Adapter Pattern in UML Diagram

UML Class Diagram depicts the Adapter design pattern. It shows the pattern with the role classes and also a usage example of the pattern. The diagram shows the design pattern roles and their relationships:
  • Client
  • Target
  • Adaptor
  • Adaptee
Adapter Design Pattern (UML Diagram)
Adapter Design Pattern (UML Diagram)

New Comment

Comment