Referencing a class

suggest change

To obtain a reference to a KClass object representing some class use double colons:

val c1 = String::class
val c2 = MyClass::class

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents