Design Pattern : Proxy Versus Decorator

Connect with

These two design pattern seems similarity 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.

Decorator Design Pattern

adds additional responsibility at run-time

Key Points

[table “” not found /]

Please write your comment to improve this post.


Connect with

Leave a Reply

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