Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Design Patterns
Structural Patterns
Decorator Pattern
Quiz
Q 01
/ 05
Intermediate
Question 1 of 5. 0 correct, 0 incorrect.
Each decorator's
describe()
returns the inner description, then a comma and its own name. What does
Milk(Sugar(Coffee())).describe()
return?
Coffee, Sugar, Milk
Milk, Sugar, Coffee
Coffee, Milk
Check answer
Home
Learn
Paths
Saved
Community