https://kotlinlang.org logo
#announcements
Title
# announcements
y

yuriy.yarosh

06/26/2016, 5:27 AM
Just a generic question Ok, so when I define my kotlin class as
Copy code
class Stuff(a: String, b: String) {}
It means that I’ve got two properties that are accessible in the primary constructor, but not stored as the class properties. But when I do
Copy code
class Stuff(val a: String, val b: String) {}
it creates the respective class properties instead. And the data class modifier adds the respective equals() / hashCode() / toString() / copy() implementations. Right ?