?
How can you retrieve the value of the property codeName without referring to it by name or destructuring?
How can you retrieve the value of the property codeName without referring to it by name or destructuring?
data class Project(var codeName: String, var version: String)
fun main(){
val proj = Project("Chilli Pepper", "2.1.0")
}
data class Project(var codeName: String, var version: String)
fun main(){
val proj = Project("Chilli Pepper", "2.1.0")
}
Join the Discussion
Login to post a comment or share your explanation.
Login