NextPP / sudoManager

Restaurant manager that you would love to hire.
MIT License
3 stars 5 forks source link

Create Item class #5

Closed Dogbonee closed 1 year ago

Dogbonee commented 1 year ago

Description

As food items are the core object that this project will manage, it will be a good starting point. The Item class should include member variables for

This class should be as simple as possible, and it should be easy to interact with in other classes.

Dogbonee commented 1 year ago

On second thought potential sales or specials can probably be handed by the menu instead of as presets

jestoncolelewis commented 1 year ago

Would adding in potential allergens be a good variable? That way servers can select/deselect allergens for customers. It gives a more direct way of informing the kitchen what to avoid.

Dogbonee commented 1 year ago

That would be a good idea. If we wanted to go further we could create a separate ingrediants class contains the ingredients of every food item, along with possible allergens. Perhaps this is not necessary, but something to think about if we want to be as detailed as possible. Otherwise, adding allergens should be fairly straightforward, and can possibly be contained in an "additional information" string variable, or its own separate variable.

neg-c commented 1 year ago

Description

As food items are the core object that this project will manage, it will be a good starting point. The Item class should include member variables for

* Name of item

* Price

* Availability/Stock of item

* Potential sales or specials that an item can have, and whether they are in effect.

This class should be as simple as possible, and it should be easy to interact with in other classes. Take a look at the class diagram on the Restaurant Management System channel