school/cpp/project/ItemToPurchase.h

29 lines
413 B
C
Raw Permalink Normal View History

2021-03-31 21:43:32 -04:00
#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