Forums Register Login

Changing value of Private Var outside its class

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
Mohit,

An enclosing class does have access to the private members of any class nested within it.
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 594 times.
Similar Threads
static nested class
inner class. can anyone explain me this question.
inner class
static inner class doubt
Static Inner Class
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:09:10.