I have written a class with the constructor below, but an error message pops up saying :
return type required ;
identifier expected
What does it mean by return type required and how would I know what return type to enter and where?
public ShaftNodePlugin(String name, String description, String graphicClass, Class class, String classPanelPlugin, boolean accesibleByWebServices) {
super(name, description, graphicClass, accesibleByWebServices, accesibleByWebServices, null);
this.class = class;
this.classPanelPlugin = classPanelPlugin;
}
And for the
line,
the error message is :
'{' expected ;
identifier expected
this.classPanelPlugin = classPanelPlugin;
For the above line of code, the error is :
illegal start of type;
identifier expected
I do not know why do these error messages pop up, so please help me resolve these errors.