Just a generic question Ok, so when I define my k...
# announcements
y
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 ?