OOP & Design Patterns - Decorator Pattern - Wrapping Behaviour Without Subclassing
Examine the following decorator implementation. What is the main issue causing infinite recursion when calling
cost() on a decorated object?
```python
class CoffeeDecorator:
def __init__(self, coffee):
self._coffee = coffee
def cost(self):
return self.cost() + 1
```
