samedi 28 mars 2020

It is possible to create an object of the class just using class variable?

I need to do that. It is possible somehow?

//Create a variable with class   
Class<?> myType = EmployeeTripOrder.class;
      //create an object of type consists variable type
        myType p;// equals EmployeeTripOrder p;

I have unknown class error





Aucun commentaire:

Enregistrer un commentaire