Is it possible to instantiate the class that is provided as generic type parameter in an abstract class?
Example:
public MyClass {
public MyClass(String test) {
}
}
Is it possible to instantiate this class inside another abstract class?
public abstract class AbstractClass<T extends MyClass> {
public AbstractClass() {
T t = new T("test"); //Cannot instantiate the type T
}
}