OOP & Design Patterns - Decorator Pattern - Wrapping Behaviour Without Subclassing
If an object is wrapped by
k decorators, each adding a constant time operation in the cost() method, what is the overall time complexity of calling cost() on the outermost decorator?