I have the class:
public class AbstractHandler {
public static void handle(){
throw new UnsupportedOperationException("Not implemented");
}
}
which is going to have some number subclasses.
Also I have the following class which is going to use that class:
public class Consumer<T extends AbstractHandler>{
public static void handle(){
//I need to call the method
//T.handle() somehow
//Is that possible?
}
}
#handlestatic anyway? Makes no sense to me, especially if you want polymorphism.T.handle();? It compiles and runs.