Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Sub-Classes and Private Instance Variables

why cant you access private variables outside the chiefo??
[58 byte] By [dendo126] at [2007-11-11 7:52:52]
# 1 Re: Sub-Classes and Private Instance Variables
actually what i mean is... why is it that in java that 2 similar objects (like 2 bank accounts or something like that) can access eachothers private instance variables and change them?
dendo126 at 2007-11-11 22:37:08 >