Skip to content

Commit fa1e734

Browse files
committed
Updated Tutorial Comments
1 parent 9ae924b commit fa1e734

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/de/jakkoble/Fruit.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package de.jakkoble
22

3-
// A data class is used if the only reason of the class is to store data
3+
// 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
45
data class Fruit(val name: String, val favorite: Boolean) {
56

6-
// Accessable with the class, not Instance of it
7+
// Accessable with the class, not Instance of it (Fruit.path => "/fruits")
78
companion object {
89
const val path = "/fruits"
910
}

0 commit comments

Comments
 (0)