I need help with a RetailStore class. The class is supposed to do this
Design and implement a class named RetailStore that holds data about an item in a retail store. The class should have the following private data members:
1. name - a string that holds the name of the store
2. numItems - an unsigned that holds the current number of unique items sold in the store
3. item - an array (with 500 slots) of RetailItem objects
I need help with the definition of the class
RetailStore::RetailStore()
{
storeName = name;
itemCount = 0;
for (int i=0; i<500; i++)
{
item[i] = NULL;
}
}
string RetailStore::getSearch();
{
if(int i=0; i<500; i++)
return i;
}
string RetailStore::getOrderItems();
{
// i need help filling out this
}
bool RetailStore::DeleteItem(string name);
{
if(int i=0; i<500; i++)
return true;
else
return false;
}
bool RetailStore::SubstractUnits(int units);
{
// i need help filling out this
}
bool RetailStore::AddUnit(int units);
{
// i need help filling out this
}
bool RetailStore::ChangeDescription(string name);
{
// i need help filling out this
}
bool RetailStore::ChangePrice(double cost);
{
// i need help filling out this
}
bool RetailStore::AddItem (string name, int count, double price);
{
// i need help filling out this
}
void RetailStore::printInventory();
{
for (int i=0; i<500; i++)
cout<<
}
bool RetailStore::ChangeDescription(string name)
{
jacket = new RetailItem1();
jeans = new RetailItem2();
shirt = new RetailItem3();
}