posted 21 years ago
if you change it to this
you can see that j is indeed 0 in the giveMeJ() method, but does get set to 10 in the object iteself.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors