I'm trying to implement the constructor of a class that has more parameters than the parent class, the only one in common is the title. When I try to implement the constructor in the Book class, it shows me an error "Implicit super constructor Item() is undefined".
public class Book extends Item {
private String author = "";
private String ISBN = "";
private String publisher = "";
public Book(String theTitle, String theAuthor, String theIsbn, String thePublisher){
}
}
Parent class constructor;
public abstract class Item {
private String title;
private int playingTime;
protected boolean gotIt;
private String comment;
public Item(String title, int playingTime, boolean gotIt, String comment) {
super();
this.title = title;
this.playingTime = playingTime;
this.gotIt = gotIt;
this.comment = comment;
}
Thanks in advance.