The public modifier

In Kotlin, the default visibility is public. If no modifier is specified on a class, function, or so on, it will be public. The public modifier in Kotlin works the same as in Java. If marked as public, or unmarked and defaulting to public, then your code will be visible and available to the entire code base.