lundi 18 mai 2020

Instantiate a class when only class name is known

Is it possible to instantiate a class if only class name is known and the class does not have a default constructor?

Only class name is available but nothing is known about the constructors (how many arguments, what type of arguments).

I googled and according to my research, it looks like it is not possible.

But I am just asking this question here to know whether my understanding is correct or is there a way?

Regards, Amit





Aucun commentaire:

Enregistrer un commentaire