diff options
Added work from todays practice
1 files changed, 19 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/09-Practice-19.04.2022/Restaurant.h | 19 |
diff --git a/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Restaurant.h b/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Restaurant.h new file mode 100644 index 0000000..1d5d28d --- /dev/null +++ b/Year 1/Object-oriented Programming/09-Practice-19.04.2022/Restaurant.h @@ -0,0 +1,19 @@ +#include "Product.h" +#include "Order.h" + +class Restaurant { + char name[25]; + Product* products; + int productsCount; + + int indexOf(const Product& prod); + +public: + Restaurant(); + Restaurant(const char* name); + + void addProduct(Product prod); + unsigned int giveOrder(Order order); + + const char* get_name() const; +}; |
