title: this keyword and inheritance - Java
body: <p>Ok, so this has been messing with me. (double entendre?)</p>
  
  <p><em>ignoring variable types since that's not the issue</em></p>
  
  <p>Lets say you have a parent class, for example a book class, with variable ISBN. The constructor sets ISBN using <code>this.ISBN = bla</code>.</p>
  
  <p>Now there's a child class. It has a constructor that calls the parent one inside it. First, how is the contructor formed? Like this? :</p>
  
  <pre><code>public kidsBook(ISBN, kidVariable) {
     super(ISBN);
     this.kidVariable = kidVariable;
  }
  </code></pre>
  
  <p>Is that the right way to do it? If so that brings up the second question: the this.ISBN from the parent class, when the constructor from the parent is called in the child constructor does the this keyword refer to the child's version of ISBN?</p>
  
  <p>It's really been confusing me and I bet the way I wrote it shows that confusion in spades.</p>
  
  <p>Edit: Fixed code mistakes not related to the question.</p>