Skip to content
Medium Analyze Software Design Patterns Multiple Choice

What is the key structural difference between Decorator and Proxy patterns?

Analyze — Tests ability to break down and examine complex problems.

Answer Options

A Decorator wraps objects to add behavior; Proxy wraps objects to control access
B Proxy adds new methods; Decorator only modifies existing ones
C Decorator is used at compile time; Proxy is used at runtime
D There is no difference — they are identical patterns

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more Software Design Patterns questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Software Design Patterns topic (Software Engineering).

More Software Design Patterns Questions