Consider I have the following interface:
public interface A { public void b(); }
However I want each of the classes that implement it to ha
Since Java supports covariant return types (since Java 1.5), you can do:
public interface A { public Object b(); }