I wrote up a CombatHandler class.

Here is what the begining:

public class CombatHandler extends client {

But when I compile I get this error:

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?

1. client class/interface does not exist
2. client class/interface does exist BUT with an uppercase "C"

> 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*.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.