mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
Kotlin: make Item class equivalent to C# and Java
This commit is contained in:
parent
f9af027c62
commit
ba6e04ef60
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user