Design Pattern : Proxy versus Adapter

Connect with

These two design pattern i.e. Proxy design pattern and Adapter design pattern looks similar somewhere or others. Structurally both are same but intent of both design pattern are different. Let me explain the similarity and differences between them.

Proxy Design Pattern

control Access to it.

What is proxy?

It’s an intermediary between a client object and the target object. responsibility wise it, It receives a call from client object and forwards them to the target Object.

Adapter Design Pattern

Make 2 different interface compatible

Adapter change the Interface , it mean make the 2 different interfaces compatible.

Key Points

[table “” not found /]

References

Suggestions are welcome to improve this post.


Connect with

Leave a Reply

Your email address will not be published. Required fields are marked *