title: Accessing Private Fields Of Superclass in SubClass
body: <pre><code>package com.company;
  
  
  import java.util.Scanner;
  
  class Person{
      private String name;
      String address;
  
  
      public Person() {
  
  
          this.name = name;
          this.address = address;
      }
      public Person(String name, String address) {
  
  
          this.name = name;
          this.address = address;
      }
  class Student extends Person{
      String program;
      int year;
      double fee;
      //public Student(){super();};
  
  
      public Student(String program, int year, double fee){
          super.Person(name,address); &lt;----Error is here
  
          this.program = program;
          this.fee = fee;
          this.year = year;
  
      }
  </code></pre>
  <p>IT IS GIVING ME ERROR THAT NAME IS PRIVATE. I HAVE TRIED ADDING AND REMOVING DEFAULT CONSTRUCTORS BUT NOTHING HELPED
  I have tried playing with constructors but nothing helped.</p>