Skip to content
Sharp

Design patterns · interview question

Which of the following is NOT a characteristic of the Decorator pattern?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsdecorator-pattern
Choose one answer
Answer and explanation

Correct answer

B. It requires subclassing for new behavior

Why

The Decorator pattern does not require subclassing for new behavior. Instead, it uses composition to wrap objects, allowing for dynamic addition of behavior.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →