posted 14 years ago
Yes, I see now, the Instance myBar object reference is shadowed by the myBar Bar reference of the argument to the changeIt() variable (local variable) So when we are acting upon the myInt variable we are actually acting upon the local variable, but it can seem as if we are working on the instance variable.
be a well encapsulated person, don't expose your privates, unless you public void getWife()!