#include #include class Integer { public: Integer(int x) { x_ = x; } int GetValue() const { return x_; } void SetValue(int x) const { x_ = x; } private: int x_; }; int main(int argc, char** argv) { const Integer i(1); i.SetValue(i.GetValue() + 350); std::cout << i.GetValue() << std::endl; return EXIT_SUCCESS; }