daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top