what is the difference between the Adapter Pattern and Proxy Patterns?its seems both are almost similar?



what is the difference between the Adapter Pattern and Proxy Patterns?its seems both are almost simi..

Answer / ravis190784

Comparing Adapter Pattern with other Patterns:

1. Adapter converts one interface to another, Decorator doesn't alter interface but adds responsibility. Facade makes an interface simpler.
Decorator is thus more transparent to the application than an adapter is. As a consequence, Decorator supports recursive composition, which isn't possible with pure Adapters.

2. Adapters allows client to make use of libraries and subsets without changing any code. Decorators allow new behaviour to be added to the classes with out altering the existing code.

3. Adapter make things work after they're designed, Bridge makes them work before they are.

4. Bridge is designed up-front to let the abstraction and the implementation vary independently. Adapter is retrofitted to make unrelated classes work together.

5. Adapter provides a different interface to its subject. Proxy provides the same interface. Decorator provides an enhanced interface.

6. Facade defines a new interface, whereas Adapter reuses an old interface. Remember that Adapter makes two existing interfaces work together as opposed to defining an entirely new one.

Is This Answer Correct ?    16 Yes 3 No

Post New Answer

More Design Patterns Interview Questions

What are the main types of concurrency design patterns?

0 Answers  


Dd you useuse OOA/OOD methodologies?did you use design patterns?

1 Answers   HP,


Can you explain singleton pattern?

0 Answers  


What is the use of such a class?

0 Answers  


What is clean architecture?

0 Answers  






What is lexi design pattern?

0 Answers  


What is the difference between factory and abstract factory design pattern?

0 Answers  


Why do we need singleton pattern?

0 Answers  


Why is it important to use systems analysis and design methodologies when building a system? Why not just build the system in whatever way appears to be “quick and easy”? What value is provided by using an “engineering” approach?

1 Answers   DBU, KSV College, Sampson, University of Ibadan,


What are structural design patterns?

0 Answers  


Which design patterns have you used in your project ?

0 Answers   QuestPond,


How might prototyping be used as part of the SDLC?

3 Answers   Apple, ASD Lab,


Categories