Join Slack
Powered by
<Kotlin - Can anyone explain the differences betwe...
# stackoverflow
u
user
03/22/2021, 8:41 AM
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!"
Open in Slack
Previous
Next