voohbar
02/22/2024, 9:56 PMfun main() {
abstract class Animal {
private val name: String = "Jack" // removing "private" fixes it
}
class Dog : Animal() {
private val age: Int = 3
}
Dog::class.memberProperties.size // = 1, "name" is missing
}
Am I missing something? Is there a way to do it?voohbar
02/22/2024, 10:03 PMYoussef Shoaib [MOD]
02/22/2024, 11:15 PMallProperties
property I think. You need full jvm reflection though