From be9dc71f94c40127657723e2881b9929c297a736 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Fri, 14 May 2021 14:21:20 +0300 Subject: sem 12 --- Sem. 12/task1/Drinks/AlcoholDrink.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Sem. 12/task1/Drinks/AlcoholDrink.h (limited to 'Sem. 12/task1/Drinks/AlcoholDrink.h') 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 -- cgit v1.3.1-26-gb76a