Join Slack
Communities
Powered by
Is there any way to create named fields of a class...
# getting-started
v
ValV
09/28/2018, 1:08 AM
Is there any way to create named fields of a class dynamically run-time?
m
muralimohan962
09/28/2018, 4:56 AM
As far as i know i don't think there is any such thing
l
lex
09/28/2018, 5:15 AM
kotlin is statically typed language, so it have not this feature
➕ 1
k
karelpeeters
09/28/2018, 5:36 AM
You need a
Map
.
➕ 1
v
ValV
09/28/2018, 10:56 AM
Thanks, I thought of such a variant as of last resort
Open in Slack
Previous
Next