Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 09-Practice-19.04.2022 / Restaurant.h
blob: 1d5d28db40d7481c00a07869ac4d0c14a3d8e691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};