and I guess it's just no different than if it's a ...
# getting-started
h
and I guess it's just no different than if it's a class, so the answer actually is
Copy code
Class.forName(xName).getConstructor().newInstance() as T
since
newInstance()
without the
getConstructor()
is deprecated