Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ITEMTOPURCHASE_H_INCLUDED
- #define ITEMTOPURCHASE_H_INCLUDED
- #include<string>
- using namespace std;
- class ItemToPurchase{
- public:
- void SetName(string& name);
- void SetPrice(double& price);
- void SetQuantity(int& quantity);
- string GetName();
- double GetPrice();
- int GetQuantity();
- ItemToPurchase();
- private:
- string itemName;
- double itemPrice;
- int itemQuantity;
- int id = 0;
- };
- #endif // ITEMTOPURCHASE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement