• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing value of Private Var outside its class

 
Mohit Agarwal
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plz. help me to figure out this program.

To my surprise the value of Private Var had changed.

Please Explain This to me!

(code tags to show nesting added)
[ August 09, 2004: Message edited by: Barry Gaunt ]
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohit,

An enclosing class does have access to the private members of any class nested within it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic