LLD Logo
LVL1
Template Method Pattern

Step 1 of 4 · Fix the recipe skeleton

1

Your task

Fix the recipe skeleton

Put the invariant preparation sequence in BeverageMaker.

Boil water, brew, pour, then add condiments in order.
Implement common boil and pour operations once.
Leave brewing and condiments to subclasses.

beverage_maker.py

Your draft · saved locally

1

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