interface Payable<T> {
void doIt(T t);
}
class Employee implements Payable<Employee> {
@Override
public void doIt(Employee t) {}
}
class Hourly extends Employee implements Payable<Hourly> {
//что реализовать?
@Override
public void doIt(Employee t) {}
// или
@Override
public void doIt(Hourly t) {}
}