Download presentation
Presentation is loading. Please wait.
1
Adapter Pattern 1
2
Definition Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
3
Class Diagram Client Target target Request() Adapter Adaptee adaptee
SpecificRequest() // return copy of this
4
Participants Target Adapter Adaptee Client
defines the domain-specific interface that Client uses. Adapter adapts the interface Adaptee to the Target interface. Adaptee defines an existing interface that needs adapting. Client collaborates with objects conforming to the Target interface.
5
?
6
References Dofactory – “Adapter”
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.