Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 09-Practice-19.04.2022 / Order.h
diff options
context:
space:
mode:
Commit26cf424c42f9cdc172191faa5b2d1c1fcf350143 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-19 21:04:23 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-19 21:04:23 +0300
Filesa14e5fa80d1461cf8c0940945f99f47f7979ba22 /Year 1/Object-oriented Programming/09-Practice-19.04.2022/Order.h
uni-projects-26cf424c42f9cdc172191faa5b2d1c1fcf350143.tar
uni-projects-26cf424c42f9cdc172191faa5b2d1c1fcf350143.tar.gz
uni-projects-26cf424c42f9cdc172191faa5b2d1c1fcf350143.zip
Parent6d4fa30cfd908e20a2ca2c70864a07007347ce98 (diff)
Added work from todays practice
1 files changed, 29 insertions, 0 deletions
-rw-r--r--Year 1/Object-oriented Programming/09-Practice-19.04.2022/Order.h29
diff --git a/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Order.h b/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Order.h
new file mode 100644
index 0000000..d044c2d
--- /dev/null
+++ b/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Order.h
@@ -0,0 +1,29 @@
+#include "Product.h"
+
+class Order {
+ char restaurantName[25];
+ Product* products;
+ int productCount;
+
+ void free();
+ void copyFrom(const Order& other);
+
+ void move(Order&& other);
+
+public:
+ Order(const char* restaurant);
+
+ ~Order();
+ Order(const Order& other);
+ Order& operator=(const Order& other);
+
+ Order(Order&& other);
+ Order& operator=(Order&& other);
+
+
+ void addProduct(const Product& product);
+
+ const char* get_restaurantName() const;
+ int get_productCount() const;
+ const Product* get_products() const;
+};