constructor error
<p>I was told that when creating a new object, it needs to have the same parameters as its constructor. Ive tried, but i still get these error. cannot find symbol s1.getCourse s1.getName s1.getAge. and also an invalid constructor error. heres my code</p>

<pre><code>    public class Person{ 
    private String name;
    private int age;

    public Person(String name, int age){
    this.name=name;
    this.age=age;
    }
    public String getDetails(){
    return "Name: " + name + "Age: " + age;
    }

    public void setName(String name){
    this.name=name;
    }
    public void setAge(int age){
    this.age=age;
    }

public String getName(){
return name;
}
public int getAge(){
return age;
}
        public class Student extends Person{
           private String course;

           public Student(String name, int age,String course){
               super(name,age);
               this.course = course;
           }
           public String getDetails(){
               return super.getDetails()+"Course: "+ course;
           }
           public void setCourse(String course){
               this.course=course;
           }
           public String getCourse(){
               return course;
           }

           public String getName(){
               return name;
           }
        }

       public String getAge(){
          return age;
       }
    }
</code></pre>

<p>TestPerson</p>

<pre><code>    student++;
    String name=array[0];
    int age=Integer.parseInt(array[1]);
    String course=array[3];
    Student s1= new Student(name,age,course);


    System.out.println("name "+s1.getName());
    System.out.println("age "+ s1.getAge());
    System.out.println("course: " + s1.getCourse());

    }
 }
</code></pre>
