anlex N
03/24/2024, 7:57 AMx
not data property?
2. what is data property? I can not find difinition in Propertieshfhbd
03/24/2024, 8:33 AMdata class Foo(val b: Int) {
val s: String = ""
}
b
is a "data property", while s is a normal property.anlex N
03/24/2024, 8:43 AMCLOVIS
03/24/2024, 11:13 AMJacob
03/24/2024, 12:38 PMKlitos Kyriacou
03/25/2024, 10:26 AMA data class is a special kind of class, which represents a product type constructed from a number of data properties, [...], described in its primary constructor.It may be worth asking someone from JetBrains if they would make the tutorial page on data classes clearer with respect to this definition.
gildor
03/26/2024, 7:19 AM