I am trying to grasp encapsulation and I am getting confused on a few points:
1. Local variables in other functions of the same class
When I want to access a variable which is local to another function of the same class, what do I have to do? I have read about accessor functions but I am not entirely sure if I get the concept.
2. Can pointers get around encapsulation? They seem to be powerful althought I am not entirely getting them completeley. And by looking at some rather complex code from other programmers (which I am trying to figure out), pointers can happily grab stuff out of scope.
3. Is there a comprehensive guide that specifically explains how to pass informations on different levels of scope? Trying to pass stuff around between different parts of the code has been a very confusing affair for me so far.



LinkBack URL
About LinkBacks



