mardi 9 octobre 2018

Can I instantiate an object by the class name in Kotlin

What is the equivalent of the following Java code in Kotlin?

Class.forName(className).newInstance()





Aucun commentaire:

Enregistrer un commentaire