extends problem

Reply

Join Date: Feb 2008
Posts: 12
Reputation: kilermage is an unknown quantity at this point 
Solved Threads: 0
kilermage kilermage is offline Offline
Newbie Poster

extends problem

 
0
  #1
Oct 20th, 2009
I wrote up a CombatHandler class.

Here is what the begining:

  1. public class CombatHandler extends client {

But when I compile I get this error:

  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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 120
Reputation: Jocamps is an unknown quantity at this point 
Solved Threads: 7
Jocamps's Avatar
Jocamps Jocamps is offline Offline
Junior Poster
 
0
  #2
Oct 20th, 2009
1. client class/interface does not exist
2. client class/interface does exist BUT with an uppercase "C"
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,609
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 464
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human
 
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*.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC