error when attempt to use equals method
23:04 24 Apr 2014

If two employee objects are the same, then I want to check if the same number is returned by the "getID()" method. I think I'm using the equals method wrong. I think something is wrong with the last line of code:

I have to keep this code:

public boolean equals( Object b )
{
  if ( ! (b instanceof Employee) )
    return false;

this is what I can edit:

(super.equals().getID()).equals(b.getID());

I get this error:

Compile Result: Error: Employee.java:25: error: cannot find symbol

Thanks for the help. I appreciate it.

java overriding equals superclass