daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest May 16th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3.  
  4. class Package
  5. {
  6.  
  7. private:
  8.     int id = 0;
  9.     std::string value;
  10.  
  11. public:
  12.     void setId(int id);
  13.  
  14.     int getId();
  15.  
  16.     void setValue(const std::string &value);
  17.  
  18.     std::string getValue();
  19. };
  20.  
  21.  
  22.  
  23. void Package::setId(int id)
  24. {
  25.     this->id = id;
  26. }
  27.  
  28. int Package::getId()
  29. {
  30.     return id;
  31. }
  32.  
  33. void Package::setValue(const std::string &value)
  34. {
  35.     this->value = value;
  36. }
  37.  
  38. std::string Package::getValue()
  39. {
  40.     return value;
  41. }
RAW Paste Data
Top