Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #ifndef ITEMTOPURCHASE_H_INCLUDED
  2. #define ITEMTOPURCHASE_H_INCLUDED
  3.  
  4.  
  5.  
  6.  
  7. #include<string>
  8. using namespace std;
  9.  
  10. class ItemToPurchase{
  11. public:
  12.     void SetName(string& name);
  13.     void SetPrice(double& price);
  14.     void SetQuantity(int& quantity);
  15.     string GetName();
  16.     double GetPrice();
  17.     int GetQuantity();
  18.     ItemToPurchase();
  19.    
  20. private:
  21.     string itemName;
  22.     double itemPrice;
  23.     int itemQuantity;
  24.     int id = 0;
  25. };
  26.  
  27. #endif // ITEMTOPURCHASE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement