Original Post
I''ve gotten into the habbit now of encapsulating things into classes. I don''t go class crazy and put every little thing in its own class but I do use classes to encapsulate things.
They way i''ve been doing my classes is that I define the class with the public members and thats it, then in the cpp file I declare what globals i need and all the other functions used by the class as static at file scope (They are visible only to that cpp file only). Now I know this would cause problems if I needed multiple instances of said class, but most of my classes are single instance use only. My question is this: Is there any real reason to do one over the other or is it a mute point.
And yes I realize my current method is probably bad coding style, it''s just the way I''ve been doing things.. It keeps stuff more hidden from the rest of the program. (Less stuff in the header)
-Nate