השיעור הזה זמין כרגע באנגלית.
Your own types
A player has a name and points, and a score is just data. Kotlin keeps both short: a class with properties fits in a few lines, and a data class writes the boring parts for you.
השיעור הזה זמין כרגע באנגלית.
A player has a name and points, and a score is just data. Kotlin keeps both short: a class with properties fits in a few lines, and a data class writes the boring parts for you.