@molly
do you have any problem making a small test example for yourself ? you are already half way with the code you showed.
You are right. It was possible. But there exists a question. Are you want that I always must make test instead make question here?
No, no. Please do not get me wrong. That was not the aim of my question.
I genuinely meant if you were capable of making such an example and see the results for yourself (and which would answer your question with regards to the value of the private variable). In case you weren't capable, then i would have pasted something similar to what user zoran showed.
Another reason to ask the question is more basic. If you are able to create the example that shows you the value of the private variable you would have learned something all by yourself.
Learning something by yourself is generally something that sticks better into your memory and for most provides a good feeling of satisfaction. e.g. it is usually better for yourself then some-one else just showing you (i did say usually, it is not true for everyone or for every level).
The moment you are able to find answers to your own questions (if even when constructing your question, it suddenly hits you with the answer) you are actually growing in becoming a better developer.
Or to put it into other words: i was attempting to see what you already know about classes and usage of classes.
As it turned out, you just needed a little push into the right direction instead of someone writing an lengthy post on how to use classes and getting yourself familiar with the basics. And in case you still have questions then simply ask them.
I am aware that you might have been reading some of my other posts, and those posts simply doesn't apply to someone genuinely seeking for answers. No matter the question (although answering get pretty difficult when someone is not aware of the basic constructs of the programming language).