I just have a simple question. I have one class which is abstract
public abstract class Person
{
private String firstName;
private String lastName;
private String title;
private String dateOfBirth;
private String homeAddress;
private String phoneNumber;
public static final String MR = "Mr";
public static final String MISS = "Miss";
public static final String MS = "Ms";
public static final String MRS = "Mrs";
public static final String DR = "DR";
public static final String PROF = "Prof";
public Person(String firstName, String lastName, String title, String dateOfBirth,
String homeAddress, String phoneNumber){
this.firstName=firstName;
this.lastName=lastName;
this.title=title;
this.dateOfBirth=dateOfBirth;
this.homeAddress=homeAddress;
this.phoneNumber=phoneNumber;
}
And i have another class which extends this class
public abstract class Borrower extends Person{
public LibraryItem [] itemsBorrowed;
private double currentFine;
private int barCode;
public LibraryItem [] getItemsBorrowed()
{
return itemsBorrowed;
}
public double getCurrentFine()
{
return currentFine;
}
public int getBarCode()
{
return barCode;
}
When i try to compile these two classes, i get the error
Cannot find symbal constructor Person(). The problem is that the tutor hates us providing default constructors, and i presume that this is what the error is asking for. Is there any way around this or does a default constructor need to be povided?
cheers