Computer scienceFundamentalsEssentialsSoftware constructionDesign patternsStructural design patterns

Decorator pattern

Decorator example

Report a typo

Looking at pattern examples from the theory, what result can we expect from this chunk of pseudocode?

Pizza hpPizza = new HotPepper(new PlainPizza)
print("Description: " + hpPizza.makePizza)
Select one option from the list
___

Create a free account to access the full topic