title: Private variables and inherited constructors
body: <p>I am new to Java, so i might have missed something here - i looked around in other threads, but i didn't find anything that quite resemble my question. i know that private variables are not inherited by the child class. the question that i am having, why did the super(); in my child constructor recognize the fields in my base constructor? is it bc the constructor in the parent class is public? and even though the variables it is passing are private, the child constructor will recognize them and pass them regardless? any clarification would be greatly appreciated. </p>
  
  <p>parent class:</p>
  
  <pre><code>public abstract class BaseQuestion {
  
  private String questions;
  private float totalAttempts;
  private float averageTime;
  private float percentCorrect;
  
  public BaseQuestion(String questions, float totalAttempts, float averageTime, float percentCorrect){
      this.questions = questions;
      this.totalAttempts = totalAttempts;
      this.averageTime = averageTime;
      this.percentCorrect = percentCorrect;
  }
  </code></pre>
  
  <p>child class:</p>
  
  <pre><code>public class TrueFalseQuestion extends BaseQuestion{
  public static int questionsCreated;
  
  
  public TrueFalseQuestion(String question, float totalAttempts, float averageTime, float percentCorrect){
      super(question, totalAttempts, averageTime, percentCorrect);
  
  }
  </code></pre>
  
  <p>the compiler gives me no error with the above, which confuses me a bit...</p>
  
  <p>Thank you,</p>