In a book I have, Learn C++ in 24 Hours, it doesn''t even talk about data structures (so far), only classes... but it will do things like:
class Cat{public:int inline getAge();private:int Age;}Cat::getAge(){return(Age);}
... and this is supposed to be more efficient. How the heck is this any more efficient? Wouldn''t it be a lot easier to make Age public?
And just a quick, stupid question... I realize that private information in classes in only available to stuff inside the class, (i.e. methods), but is the class itself global? Or is it just like anything else, that if it is defined the function it is local, and outside, it is global? (Don''t worry, just a bit confused for now).
Thanks!