I have a Meeting class and I want to create a BusinessMeeting class which extends Meeting.
This is my Meeting class:
public class Meeting {
private String name;
private String location;
private int start, stop;
public Meeting(String name, String location, int start, int stop) {
this.name = name;
this.location = location;
this.start = start;
this.stop = stop;
}
This is my BusinessMeeting class:
public class BusinessMeeting extends Meeting {
public BusinessMeeting() {
super();
}
}
In my BusinessMeeting class, I am getting the error:
constructor Meeting in class Meeting cannot be applied to given types; required: String,String,int,int found: no arguments
I am not really sure why I am getting that error message. Shouldn't the BusinessMeeting class inherit all of the variables from my Meeting class?