fun <T : Any> newInstance(cls: Class<T>): T
Creates a new instance of the given class.
cls - The type of object to create.
cls
inline fun <reified T : Any> newInstance(): T
Creates a new instance of the given type.
T - The type of object to create.
T