How can I construct supertypes of a class/object i...
# announcements
i
How can I construct supertypes of a class/object in Kotlin?
s
basic reflection: (assuming the superclass of instance
x
has a constructor with zero arguments)
Copy code
x::class.java.superclass.newInstance()
https://pl.kotl.in/TDgbjSWTn https://www.baeldung.com/kotlin-reflection
i
Hey Stephen can you explain what Supertypes in Kotlin are exactly? I am still shaky on what I understood
And thanks for the link