What is the difference between the Decorator and Proxy patterns?

  • None of the above
  • The Decorator and Proxy patterns are the same
  • The Decorator pattern adds behavior to an object dynamically, while the Proxy pattern provides a substitute for an object to control access to it
  • The Decorator pattern provides a substitute for an object to control access to it, while the Proxy pattern adds behavior to an object dynamically
The Decorator pattern adds behavior to an object dynamically, while the Proxy pattern provides a substitute for an object to control access to it
Add your answer
Loading...

Leave a comment

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