I have this interface:
public interface Library {
public abstract void addEmployee (Employee employee);
}
Three classes implements this interface:
public class CentralLibrary extends Store implements Library {
@Override
public void addEmployee(Employee employee, char determiner) {
}
}
public class LibraryA extends CentralLibrary implements Library {
@Override
public void addEmployee(Employee employee) {
}
}
public class LibraryB extends CentralLibrary implements Library {
@Override
public void addEmployee(Employee employee) {
}
}
Is there anyway to override addEmployee
method with different signature?