Advertisement
noobdoob

Untitled

Apr 28th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include "Product.h"
  2.  
  3.  
  4. Product::Product()
  5. {
  6. code=0;
  7. name="";
  8. price=0;
  9. }
  10.  
  11. Product::Product(int ccode, string nname, double pprice)
  12. {
  13. code=ccode;
  14. name=nname;
  15. price=pprice;
  16. //ctor
  17. }
  18.  
  19. int Product::getCode()
  20. {
  21. return code;
  22. }
  23. string Product::getName()
  24. {
  25. return name;
  26. }
  27. double Product::getPrice()
  28. {
  29. return price;
  30. }
  31.  
  32. Product::~Product()
  33. {
  34. //dtor
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement