``` class ItemStack(quantity: Int){ var quanti...
# getting-started
f
Copy code
class ItemStack(quantity: Int){
    var quantity = quantity
        set(value){
            if(value <= 0) ...
            field = value
        }
}