29 lines
413 B
C++
29 lines
413 B
C++
#ifndef ITEM_TO_PURCHASE_H
|
|
#define ITEM_TO_PURCHASE_H
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
/* Type your code here */
|
|
|
|
class ItemToPurchase {
|
|
|
|
private:
|
|
std::string itemName;
|
|
int itemPrice;
|
|
int itemQuantity;
|
|
|
|
public:
|
|
ItemToPurchase();
|
|
void SetName(std::string name);
|
|
std::string GetName();
|
|
|
|
void SetPrice(int price);
|
|
int GetPrice();
|
|
|
|
void SetQuantity(int q);
|
|
int GetQuantity();
|
|
|
|
};
|
|
#endif
|