- Joined
- Mar 10, 2009
- Messages
- 5,014
Thanks guys, it cleared a lot of questions that I have in mind...
I think people will try to protect the variables by not changing them directly from any functions, except the getter/setter...You can make all variables private and accesable by getters/setters only, but some people dont like that, or you can make everything public
I think classes should be defined/declared in the header since if Im not mistaken, there is no way to access it without including it to at least 1 cpp file...In most cases you will define the class interface in a header file