We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae924b commit fa1e734Copy full SHA for fa1e734
src/main/kotlin/de/jakkoble/Fruit.kt
@@ -1,9 +1,10 @@
1
package de.jakkoble
2
3
-// A data class is used if the only reason of the class is to store data
+// A data class is used if the only reason of the class is to store data (In this Case the 'name', 'favorite' and 'path')
4
+// For further Information about Data Classes visit: https://kotlinlang.org/docs/data-classes.html
5
data class Fruit(val name: String, val favorite: Boolean) {
6
- // Accessable with the class, not Instance of it
7
+ // Accessable with the class, not Instance of it (Fruit.path => "/fruits")
8
companion object {
9
const val path = "/fruits"
10
}
0 commit comments