Which is the normal choice for accessing constants...
# codingconventions
t
Which is the normal choice for accessing constants from another class? 1️⃣
Copy code
data class SomeObject(
    var name: String
) {
    companion object {
        const val A = "..."
        const val B = "..."
    }
}
2️⃣
Copy code
const val SOME_OBJECT_A = "..."
const val SOME_OBJECT_B = "..."

data class SomeObject(
    var name: String
)
1️⃣ 7