Guest User

Untitled

a guest
Apr 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. class Product {
  6. protected:
  7. string name;
  8. double price;
  9. double weight;
  10.  
  11. public:
  12. Product(string, double, double);
  13. string getName() {return name;}
  14. double getPrice() {return price;}
  15. double getWeight() {return weight;}
  16. };
  17. class Purchase : public Product {
  18. private:
  19. Purchase(string n, double p, double w);
  20.  
  21. public:
  22.  
  23. };
  24.  
  25. class Verification : public Purchase {
  26. private:
  27.  
  28. public:
  29.  
  30. };
  31.  
  32. int main(){
  33.  
  34. system("pause");
  35. }
  36.  
  37. Product::Product(string n, double p, double w)
  38. {
  39. name = n;
  40. price = p;
  41. weight = w;
  42. }
Add Comment
Please, Sign In to add comment