27 lines
422 B
C++
27 lines
422 B
C++
/*
|
||
* CondimentDecorator.hpp
|
||
*
|
||
* Created on: 1 нояб. 2021 г.
|
||
* Author: alexander
|
||
*/
|
||
|
||
#pragma once
|
||
|
||
#include "Beverage.hpp"
|
||
#include <iostream>
|
||
|
||
class CondimentDecorator: public Beverage
|
||
{
|
||
public:
|
||
Beverage *beverage;
|
||
|
||
CondimentDecorator(Beverage *beverage): beverage(beverage) {}
|
||
|
||
virtual std::string getDescription() const = 0;
|
||
|
||
~CondimentDecorator()
|
||
{
|
||
delete beverage;
|
||
}
|
||
};
|