Search:

Type: Posts; User: java_newbie

Search: Search took 0.12 seconds.

  1. Re: Access and set variable in parent class through child

    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...
  2. Access and set variable in parent class through child

    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...
Results 1 to 2 of 2