Ok, so i've seen alot of people write classes diffrent ways. some prefer the interface at the top, and the implementation at the bottom, some prefer it the other way.
i.e: Top:
class Foo{
private:
int m_Member;
public:
void SetMember(int value);
int GetMember(void);
}:
vs: Bottom:
class Foo{
public:
void SetMember(int value);
int GetMember(void);
private:
int m_Member;
};
so, i can understand the point of getting to the interface faster, but personally i like having the variables at the top. anywho, what are your reasons, what do you like?