Thanks for trying to help out!
The problem is that I'm trying to change the x in A through a method in C. Doing what you suggested only changes the x in C, which I'm actually trying to leave...
Type: Posts; User: java_newbie
Thanks for trying to help out!
The problem is that I'm trying to change the x in A through a method in C. Doing what you suggested only changes the x in C, which I'm actually trying to leave...
Hi,
I have 3 classes, A, B, and C.
B extends A, and C extends B. Each class has a protected variable named x. Class A has a method to set x, and one to retrieve x, which I understand are...