How to fix this error LocalResource.java:213: error: constructor LocalResource in class LocalResource cannot be applied to given types; super("", "", dob, sector); ^ required: String,String found: String,String,String,String reason: actual and formal argument lists differ in length class LocalConsultant extends LocalResource implements Citizen, Consultant { private String skill; private double permitTax;
How to fix this error
LocalResource.java:213: error: constructor LocalResource in class LocalResource cannot be applied to given types; super("", "", dob, sector); ^ required: String,String found: String,String,String,String reason: actual and formal argument lists differ in length
class LocalConsultant extends LocalResource implements Citizen, Consultant {
private String skill;
private double permitTax;
public LocalConsultant(String dob, String sector, double skillPrice, double taxRate, String skill) {
super("", "", dob, sector);
this.skill = skill;
this.permitTax = taxRate * skillPrice;
}
public double earnFromSkill(){
return permitTax;
}
public String getContact(){
return "LocalConsultant#" + getId();
}
![class LocalConsultant extends LocalResource implements Citizen, Consultant
private String skill;
private double permitTax;
public LocalConsultant (String dob, String sector, double skillPrice, double taxRate, String skill) {
super("", "", dob, sector);
this.skill
skill;
this.permitTax = taxRate * skillPrice;
}
public double earnFromSkill() {
return permitTax;
}
public String getContact() {
}
public double getPay() {
}
return "LocalConsultant#" + getId();
}
return earnFromSkill()-permitTax;](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2ca3eaf2-3bda-40e1-af2e-245059bd57cf%2F20c61c33-32bd-40e0-96b8-0e25b4be4457%2Fb0txvq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)