posted 13 years ago
Hi,
I have this basic question, how is the following code able to access the instance variable even though its private? (the code compiles without any errors)
Please refer to line 10 of the code above,
So specifically, the question i have is: "is static main() method allowed to access private instance variable of the class just like any other instance method?". This is confusing me a bit.
Thanks.