<Kotlin - Can anyone explain the differences betwe...
# stackoverflow
u
Kotlin - Can anyone explain the differences between declaring a variable inside and outside the class? Here is the example: Declare inside the class class User { private val greeting = "Hello, World!" } Declare outside the class private val greeting = "Hello, World!"