I'm new to kotlin and i am used to python. In python if i run dir(class) i get all names of attributes and methods of that class or object of class.
Is there a way of doing the same in kotlin?
Thank you in advance
You can use YourClass::class.members for a list of attributes and YourClass::class.java.methods for the methods.
How to acess attributtes and methods of a class in kotlin?