I have a Person class that has the following constructor
Person(String firstName, String lastName, int identification){
And a student class that extends from Person and whose constructor I want to add one more parameter, which are the notes. To do this, I extend and create a new constructor
class Student extends Person{
private int[] testScores;
Student(String firstName, String lastName, int identification, int[] numScores){
The problem is that the compiler gives me an error here, because:
constructor Person in class Person can not be applied to given types, requiered String, String, int.
Let's see that it does not overload the constructor of the Persona class and it still tells me that the Persona constructor only has 3 arguments.
How can I solve this error? It's for an exercise and I can not create a new constructor in the Person class with the 4 arguments, but it has to be a constructor in the student class.
Thank you.