Question: C++ PROGRAM 1-Develop a class called WritingTools with properties such item price location and name. 2- create a new class called item more generic than
C++ PROGRAM
1-Develop a class called WritingTools with properties such item price location and name.
2- create a new class called item more generic than the first one you developed. It should include general characteristic for all items and other writing a color
3-You have added a new category called food. You already worked on WritingTools but you have inherit the propertie from item.
4-Create the new class for Food. It varies from WritingTools that the expirationdate and isrefrigerated is added
5- Use the concept of inheritance between item and writingTool and item and FoodItem
6-Each inheritance overloads the constructor of item, depending on the parameters sent.
7- The main menu now asks before entering an item if you want to enter food or WritingTools
8-Thinking task: how can I store both types? (think ahead to multiple item types)
Do a main: showing a menu :the rpogram have a menu of the following options:
Option 1- User selects too add a new item
Option 2-User selects the category to add the item(between food or writing toos)
Option 3-User Selects the category of the item
Option 4- User enters an item
hint: create two arrays from Class writingTools and class food to store the data asked to the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
