Junior
What functions are initially defined in data classes in Kotlin?
sobes.tech AI
Answer from AI
Kotlin data classes automatically generate the following functions:
equals()hashCode()toString()copy()componentN()(for destructuring)
sobes.tech AI
Answer from AI
Kotlin data classes automatically generate the following functions:
equals()hashCode()toString()copy()componentN() (for destructuring)