944,196 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 452
  • Java RSS
Oct 20th, 2009
0

extends problem

Expand Post »
I wrote up a CombatHandler class.

Here is what the begining:

Java Syntax (Toggle Plain Text)
  1. public class CombatHandler extends client {

But when I compile I get this error:

Java Syntax (Toggle Plain Text)
  1. Running Compiler
  2. --------------------------------------
  3. CombatHandler.java:3: cannot find symbol
  4. symbol : constructor client()
  5. location: class client
  6. public class CombatHandler extends client {
  7. ^
  8. Note: stream.java uses or overrides a deprecated API.
  9. Note: Recompile with -Xlint:deprecation for details.
  10. 1 error
  11. Press any key to continue . . .

Can anyone help?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kilermage is offline Offline
15 posts
since Feb 2008
Oct 20th, 2009
0
Re: extends problem
1. client class/interface does not exist
2. client class/interface does exist BUT with an uppercase "C"
Reputation Points: 30
Solved Threads: 7
Junior Poster
Jocamps is offline Offline
120 posts
since Jun 2007
Oct 21st, 2009
0
Re: extends problem
> 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*.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Count characters in a code
Next Thread in Java Forum Timeline: Getting string with space





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC