Visibility Modifiers

Other topics

Code Sample

Public: public val name = "Avijit"

Private: private val name = "Avijit"

Protected: protected val name = "Avijit"

Internal: internal val name = "Avijit"

Syntax:

  • <visibility modifier> val/var <variable name> = <value>

Contributors

Topic Id: 10019

Example Ids: 30762

This site is not affiliated with any of the contributors.