I created interface:
public interface SubApp {
public String talk(Result<? extends Object> result);
}
And this implementation:
class A implements SubApp{
@Override
public String talk(Result<String> result) {...}
}
My IDE gives following error: Method does not override method from its superclass.
How do I define method in interface to make method public String talk(Result<String> result) override method of interface?