| | |
extends problem
![]() |
•
•
Join Date: Feb 2008
Posts: 12
Reputation:
Solved Threads: 0
I wrote up a CombatHandler class.
Here is what the begining:
But when I compile I get this error:
Can anyone help?
Here is what the begining:
Java Syntax (Toggle Plain Text)
public class CombatHandler extends client {
But when I compile I get this error:
Java Syntax (Toggle Plain Text)
Running Compiler -------------------------------------- CombatHandler.java:3: cannot find symbol symbol : constructor client() location: class client public class CombatHandler extends client { ^ Note: stream.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error Press any key to continue . . .
Can anyone help?
0
#3 Oct 21st, 2009
> Can anyone help? help
Check if the Client class has a no-arg constructor in case you have explicitly provided a overloaded constructor. Also, looking at the error message gives an indication that you are not placing your class in a package. Make it a habit to put your classes in packages, *always*.
Check if the Client class has a no-arg constructor in case you have explicitly provided a overloaded constructor. Also, looking at the error message gives an indication that you are not placing your class in a package. Make it a habit to put your classes in packages, *always*.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- IllegalThreadState Problem! (Java)
- basic java GUI problem (Java)
- n00b problem (Java)
- problem with background image repeat-y (HTML and CSS)
- "cannot resolve symbol"problem (Java)
- [MERGED]can anybody help me with this problem; snake game (Java)
- problem in java cobe (Java)
- problem with TicTacToe..somebody help me!! (Java)
- DrawHouse Code Problem (Java)
Other Threads in the Java Forum
- Previous Thread: Count characters in a code
- Next Thread: Getting string with space
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






