I keep seeing code where class variables are declared after methods at the bottom like
class Observer
{
public:
int getstate();
void update(int state);
private:
int state;
};
Is this a common practice I should adapt to? Is there a reason for ordering them like this?