Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / AlcoholDrink.cpp
diff options
context:
space:
mode:
1 files changed, 0 insertions, 17 deletions
-rw-r--r--Big4AndInheritance/AlcoholDrink.cpp17
diff --git a/Big4AndInheritance/AlcoholDrink.cpp b/Big4AndInheritance/AlcoholDrink.cpp
deleted file mode 100644
index a876a0b..0000000
--- a/Big4AndInheritance/AlcoholDrink.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-include "AlcoholDrink.h"
-
-
-AlcoholDrink::AlcoholDrink(const char* mark, int ml, int percentAlcohol) : Drink(mark,ml)
-{
- setAlcohol(percentAlcohol);
-}
-void AlcoholDrink::setAlcohol(int alcohol)
-{
- if (alcohol < 4 || alcohol>98)
- alcohol = 20;
- percentAlcohol = alcohol;
-}
-int AlcoholDrink::getAlcohol() const
-{
- return alcohol;
-} \ No newline at end of file