Consider I have the following interface:
public interface A { public void b(); }
However I want each of the classes that implement it to have a different return type for the method b().
Examples:
public class C { 
  public C b() {} 
}
public class D { 
  public D b() {} 
}
How would I define my interface so that this was possible?