LLD Logo
LVL1
Decorator Pattern

Step 1 of 4 · Define the coffee contract

1

Your task

Define the coffee contract

Expose the cost and description shared by every order.

Create the client-facing Coffee contract.
Represent both price and descriptive text.

coffee.py

Your draft · saved locally

1

Structural feedback only—your code stays in this browser and is not executed.