mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Kotlin: make Item class equivalent to C# and Java
This commit is contained in:
1 parent
f9af027c62
commit
ba6e04ef60
1 file changed
+5
-1
@@ -1,3 +1,7 @@
|
||||
package com.gildedrose
|
||||
|
||||
data class Item(var name: String, var sellIn: Int, var quality: Int)
|
||||
open class Item(var name: String, var sellIn: Int, var quality: Int) {
|
||||
override fun toString(): String {
|
||||
return this.name + ", " + this.sellIn + ", " + this.quality
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user