module decorator.coffee.milk; import decorator.coffee.beverage; import decorator.coffee.condimentdecorator; class Milk : CondimerDecorator { private: Beverage beverage; public: this(Beverage beverage) { this.beverage = beverage; } override string getDescription() { return beverage.getDescription() ~ ", Milk"; } override double cost() { return .10 + beverage.cost(); } }