What is the Decorator pattern in Java?
The Decorator pattern allows new features to be added to objects without modifying their source code.
Correct! The Decorator pattern lets you extend functionality by wrapping an object in a new class, without changing its original code.
Can you explain how decorators are chained to provide multiple enhancements to an object?