Results 1 to 1 of 1
Thread: Errors in constructor
- 07-01-2007, 05:35 PM #1
Member
- Join Date
- Jun 2007
- Posts
- 21
- Rep Power
- 0
Errors in constructor
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?
And for theJava Code: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; }line,Java Code:this.class = class;
the error message is :
'{' expected ;
identifier expected
For the above line of code, the error is :Java Code:this.classPanelPlugin = classPanelPlugin;
illegal start of type;
identifier expected
I do not know why do these error messages pop up, so please help me resolve these errors.
Similar Threads
-
help with these errors
By oceansdepth in forum New To JavaReplies: 3Last Post: 04-16-2008, 04:55 PM -
Errors I don't understand
By MattyB in forum New To JavaReplies: 4Last Post: 04-01-2008, 11:55 PM -
Calling constructor of parent class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 09:10 AM -
Calling constructor of same class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 09:01 AM -
I have 3 errors after compiling
By coco in forum JDBCReplies: 2Last Post: 10-18-2007, 09:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks