First off I have to write an OOP Burger Stand. The instructions were as followed:
1. Create a Class - FastFood
2. Properities of the class
Item Name, Cost, Quantity
3. Methods of the Class
Enter Name, Cost, Quantity
Return Name, Cost, Quantity
Have the Employee Enter an Item
My question is how do I call the function to have the employee enter in an item (for example: Burgers)? This is where I' am completely lost.
1. Create a Class - FastFood
2. Properities of the class
Item Name, Cost, Quantity
3. Methods of the Class
Enter Name, Cost, Quantity
Return Name, Cost, Quantity
Have the Employee Enter an Item
My question is how do I call the function to have the employee enter in an item (for example: Burgers)? This is where I' am completely lost.
Code:
#include <iostream> using namespace std; class FastFood { public: void enterItemName(string, string, string); void returnItemName(string&, string&, string&); void enterCost(const float); void returnCost( const float&); void enterQuantity(int, int, int); void returnQuantity(int&, int&, int&); private: string ItemName; const float Cost; int Quantity; }; int main() { return 0; }
Comment