Радар на почту

Kotlin Data Class vs Regular Class Explained Simply

DEV · 14.11.2026 · 13:27

In short: a data class is a normal class where the compiler writes five things for you: equals(), hashCode(), toString(), copy() and component1(), component2() and so on. It uses only the…

Читать в источнике