Adapter pattern

By Bartosz Wieczorek

Adapter pattern

Draft: We have a class that doesn’t apply to our target interface. We need to wrap our class with a new adapter class that implements the target interface and has a member variable of type of our class and sets it via constructor/setter. The call to the adapter class method is delegated internally to our class method call.

Leave a Reply