Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Drink.h
diff options
context:
space:
mode:
Commite9caa46ffe6ebf4f848f643128f380c6b51218c4 (patch)
Author
 Angeld55 <achi_d@abv.bg>
2019-09-19 19:23:18 +0300
Committer
 GitHub <noreply@github.com>
2019-09-19 19:23:18 +0300
Files93e9ae24c069b4ae9a4144f71be7ccc4548bba8e /Big4AndInheritance/Drink.h
Object-oriented_programming_FMI-e9caa46ffe6ebf4f848f643128f380c6b51218c4.tar
Object-oriented_programming_FMI-e9caa46ffe6ebf4f848f643128f380c6b51218c4.tar.gz
Object-oriented_programming_FMI-e9caa46ffe6ebf4f848f643128f380c6b51218c4.zip
Parent50755fd0286f1c1fd605611644a14848b311c050 (diff)
Add files via upload
1 files changed, 20 insertions, 21 deletions
-rw-r--r--Big4AndInheritance/Drink.h41
diff --git a/Big4AndInheritance/Drink.h b/Big4AndInheritance/Drink.h
index ffab919..0132e16 100644
--- a/Big4AndInheritance/Drink.h
+++ b/Big4AndInheritance/Drink.h
@@ -1,21 +1,20 @@
-#include <iostream>
-using namespace std;
-
-class Drink
-{
-private:
- char* mark;
- int ml;
- void CopyFrom(const Drink& other);
- void Free();
-public:
- Drink();
- Drink(const char* mark, int ml);
- Drink(const Drink& other);
- Drink& operator=(const Drink& other);
- ~Drink();
-
- void setML(int ml);
- int getML() const;
- const char* getMark() const;
-};
+#include <iostream>
+
+class Drink
+{
+private:
+ char* mark;
+ int ml;
+ void CopyFrom(const Drink& other);
+ void Free();
+public:
+ Drink();
+ Drink(const char* mark, int ml);
+ Drink(const Drink& other);
+ Drink& operator=(const Drink& other);
+ ~Drink();
+
+ void setML(int ml);
+ int getML() const;
+ const char* getMark() const;
+}; \ No newline at end of file