Created
October 4, 2017 20:43
Revisions
-
jpyatachkov created this gist
Oct 4, 2017 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ class Gettable { public: explicit Gettable(int attribute); Gettable &setAttribute(int attribute); int attribute() const; private: int _attribute; }; Gettable::Gettable(int attribute): _attribute(attribute) { } Gettable &Gettable::setAttribute(int attribute) { _attribute = attribute; return *this; } int Gettable::attribute() const { return _attribute; }