Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- class Package
- {
- private:
- int id = 0;
- std::string value;
- public:
- void setId(int id);
- int getId();
- void setValue(const std::string &value);
- std::string getValue();
- };
- void Package::setId(int id)
- {
- this->id = id;
- }
- int Package::getId()
- {
- return id;
- }
- void Package::setValue(const std::string &value)
- {
- this->value = value;
- }
- std::string Package::getValue()
- {
- return value;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement