Skip to content

Instantly share code, notes, and snippets.

@PragmaticCoding
Last active January 13, 2022 07:09
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 PragmaticCoding/e7e3c38f85227842558e3ebc79f6c9ff to your computer and use it in GitHub Desktop.
Save PragmaticCoding/e7e3c38f85227842558e3ebc79f6c9ff to your computer and use it in GitHub Desktop.
Kotlin Property Implementation and Assignment
class KotlinClass() {
public var nickName: String = ""
}
fun main(args: Array<String>) {
val testClass = KotlinClass()
testClass.nickName = "Shorty"
println("Nickname: $testclass.nickName")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment