posted 14 years ago
Hi I was doing the exercise 7 of the Chapter 3 and I don't know I this code compiles.
The points is an instance variable with the access modifier private, but the main method is accessing. And another thing is calling a method getBidValue that even do not exsits. So please, can anyone tell me if this exercise compiles ??? And if does what will be the output?
Another crazy thing is that I changed the code of the main method just to:
And then the code compiles. Why is accessing a private instance variable???.