


Note:If visibility modifier is not specified, it is public by default. There are four visibility modifiers in Kotlin: Getters always have the same visibility as the property.

In Kotlin, visibility modifiers are used to restrict the accessibility of Classes, objects, interfaces, constructors, functions, properties and their setters to a certain level.
