I Have below the constructor and private paramter.
private Class class; public SomeRequest(subClass_of_SomeClass.java){ this.class=subClass_of_above_parameter; } Now the constructor should not accept any class type. It has to accept the class type which is a sub class of SomeClass.java.
How can i write a generic parameter?
private Class<SomeClass> class; Is above declaration correct?