OOP & Design Patterns - Decorator Pattern - Wrapping Behaviour Without Subclassing
Given the following code snippet using the Decorator Pattern, what is the output of
print(coffee.description())?
```python
class SimpleCoffee:
def description(self):
return "Coffee"
class MilkDecorator:
def __init__(self, coffee):
self._coffee = coffee
def description(self):
return self._coffee.description() + ", Milk"
coffee = MilkDecorator(SimpleCoffee())
print(coffee.description())
```