/* * Milk.hpp * * Created on: 1 нояб. 2021 г. * Author: alexander */ #pragma once #include "CondimentDecorator.hpp" class Milk: public CondimentDecorator { public: Milk(Beverage *beverage): CondimentDecorator(beverage) {} std::string getDescription() const override { return beverage->getDescription() + ", Milk"; } double cost() const override { return 0.10 + beverage->cost(); } };