diff options
sem 12
1 files changed, 15 insertions, 0 deletions
| -rw-r--r-- | Sem. 12/task1/Drinks/AlcoholDrink.h | 15 |
diff --git a/Sem. 12/task1/Drinks/AlcoholDrink.h b/Sem. 12/task1/Drinks/AlcoholDrink.h new file mode 100644 index 0000000..89b2da3 --- /dev/null +++ b/Sem. 12/task1/Drinks/AlcoholDrink.h @@ -0,0 +1,15 @@ +#pragma once + +#include "Drink.h" + +class AlcoholDrink : public Drink +{ + int alcoholPercentage; + +public: + AlcoholDrink(); + AlcoholDrink(const char* name, int ml, int alcoholPercentage); + + int getAlcoholPercentage() const; + void setAlcoholPercentage(int alcoholPercentage); +};
\ No newline at end of file |
