I am from Swift background. Swift has both "value" type & "reference" type support, I am bit curious. Does Kotlin have similar concepts?
By default, any class is a reference type. Whereas, with some digging, I found "data class" in Kotlin behaves as a value type.
I don't have clarity from official documentation. https://kotlinlang.org/docs/data-classes.html
Can some one please help in understanding this concept?
toString,equalsetc. In all other respects data class is just a regular class.