nbento.neves
08/12/2022, 9:17 AMkt
file with an object
inside an object
. I would like to know if someone can help me to understand the difference between using the object
and a companion object
. Is this the right way to use object
?
object Type {
object USER {
const val KEY = "key"
const val NAME = "name"
}
}
Alessandro Ciccimarra
08/12/2022, 9:36 AMType.User.KEY
.
Details about object
declarations can be found here.nbento.neves
08/12/2022, 10:18 AM