school/cpp/project/ItemToPurchase.cpp
2021-03-31 21:43:32 -04:00

21 lines
533 B
C++

#include <iostream>
using namespace std;
#include "ItemToPurchase.h"
ItemToPurchase::ItemToPurchase(){
itemName = "none";
itemPrice = 0;
itemQuantity = 0;
}
void ItemToPurchase::SetName(std::string n){itemName = n;}
std::string ItemToPurchase::GetName() {return itemName;}
void ItemToPurchase::SetPrice(int p){itemPrice = p;}
int ItemToPurchase::GetPrice() {return itemPrice;}
void ItemToPurchase::SetQuantity(int q) { itemQuantity = q; }
int ItemToPurchase::GetQuantity(){ return itemQuantity;}
/* Type your code here */