Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is Color Theory?

1 Answers  


Is dependency injection a design pattern?

0 Answers  


Why have we declared the instance reference volatile?

0 Answers  


What are the biggest trends in UX Design these days?

3 Answers  


Who is your inspiration in this field?

1 Answers  


What are the benefits of the proxy in the design pattern?

0 Answers  


What would help with feature-related decisions?

1 Answers  


Contact a small, medium, and a large contract program within your organization. Interview the Technical Director or Project Engineer to identify the following information: a. Request the individual to graphically depict their development strategy? b. What factors drove them to choose the implementation strategy? c. What were some of the lessons learned from developing and implementing the strategy that would in&#64258;uence their approach next time? d. How was the V & V strategy implemented?

0 Answers  


What according to you will be the next best thing in UI UX Design?

3 Answers  


Give me example of observer design pattern?

0 Answers  


What are the 23 design patterns?

0 Answers  


What are 5 common problems in the software development process?

1 Answers   HP,


Categories