Skip to content

Instantly share code, notes, and snippets.

@nsadisha
Created November 1, 2022 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsadisha/88cccfe63c7e7ae0f3ee50d17e19bbd7 to your computer and use it in GitHub Desktop.
Save nsadisha/88cccfe63c7e7ae0f3ee50d17e19bbd7 to your computer and use it in GitHub Desktop.
package com.nsadisha.mvvmtest_2.model
class Counter(_count: Int){
var count: Int = _count
fun increment(){
this.count += 1
}
override fun toString(): String {
return count.toString()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment