Skip to content

Instantly share code, notes, and snippets.

@jpyatachkov
Created October 4, 2017 20:43
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment