title: Java Inheritance, Two subclasses of the same class
body: <p>Some context:
  I have a two different classes (Client and ClientAuth) that both extend the same abstract class, NetworkingAbstract (i'll call it NA). This last class has three different protected static class variables with the following types: a Socket, an InputStream and an OutputStream. </p>
  
  <p>I create a new ClientAuth object inside the Client class. The ClientAuth object calls a method that
  initializes the NetworkingAbstract class variables, InputStream and OutputStream. Then, when the method returns, when I access those variables (inside the Client class), they have the same values that were attributed to them inside the ClientAuth object! </p>
  
  <p>This actually suits my needs, but I don't understand why this happens!</p>
  
  <p>Shouldn't those class variables (OutputStream and InputStream) be independent between Client and ClientAuth despite the fact that they both extend the same class?? Or is it that because they both extend the same class, they share the values??</p>
  
  <p>I hope I made my question clear enough..</p>