I am new to Java Generics. I have to implement an interface that has a generic type. The syntax is as follows:
public interface A{}
public interface B<T extends A>{
public T methodB(T a) ;
}
Now I have to implement B so that my class C is
public class C implements B<T extends A>{}
The java compiler does not allow me to use it that way. Also I do not want to use raw types. Please, help.
source
share