Closed RockyDesigne closed 1 year ago
As a menu is central to any restaurant, implementing a menu class should be a priority.
The menu class will have one member variable, which will be a vector of items, representing all items on the menu.
It will have the following methods:
add_menu_item(item)
remove_menu_item(item)
get_menu_item(item_name)
get_menu_item_price(item_name)
print_menu()
This is just a basic implementation of the menu class and more complexity can be added later.
No response
Hi ! Can I have this issue assigned to me ?!
Motivation
As a menu is central to any restaurant, implementing a menu class should be a priority.
Feature Description
The menu class will have one member variable, which will be a vector of items, representing all items on the menu.
It will have the following methods:
add_menu_item(item)
: adds a new MenuItem object to the menu_items listremove_menu_item(item)
: removes a MenuItem object from the menu_items listget_menu_item(item_name)
: returns the MenuItem object corresponding to the given item nameget_menu_item_price(item_name)
: returns the price of the MenuItem object corresponding to the given item nameprint_menu()
: prints all the items on the menuThis is just a basic implementation of the menu class and more complexity can be added later.
Additional context
No response