-
Adapter Design Pattern in Java with UML Diagram and Real Use Cases
We have an existing object which provides the functionality that client needs , but client code can not use this object because its expects an object with different interface . Using adapter design pattern we make this object work with client by adopting the object to client expects interface . this pattern is also called as wrapper as its wrap existing objects . Adapter design pattern is used so that two unrelated interface can work together, the object that joins these unrelated interface is called as adapter . Adapter design pattern we can implement using 1. Class Adapter : this form uses java Inheritance and extends the source interface Adaptee:…