Reputation: 38583
It is possible to load a class given a String and its name? ie "MyClass.class"
Further, is it possible to pass parameters to the constructor using this method?
Upvotes: 0
Views: 124
Reputation: 420951
Have a look at Construct Object using class name.
Key methods being forName()
and newInstance()
.
Upvotes: 4