Advertisement
noobdoob

Untitled

Apr 28th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #ifndef PRODUCT_H
  2. #define PRODUCT_H
  3.  
  4. #include <iostream>
  5. #include <string>
  6. using namespace std;
  7.  
  8.  
  9. class Product
  10. {
  11. Product();
  12. public:
  13. Product(int ccode, string nname, double pprice);
  14. int getCode();
  15. string getName();
  16. double getPrice();
  17.  
  18. virtual ~Product();
  19.  
  20. protected:
  21.  
  22. private:
  23. int code;
  24. string name;
  25. double price;
  26. };
  27.  
  28. #endif // PRODUCT_H
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement