In java , we can do this:
Class.forName(“MyClass”).newInstance() ,
or Class.forName(“MyClass”).getConstructor(…).invoke(args)
Now given a data class :
public data class MyClass (…)
How to do the same in kotlin ?
Does kotlin have it’s own reflect api ?
Thanks!
Outersky