Packages & Imports
Organize code with packages, imports and visibility modifiers.
1
kotlin packages
2Package Declaration in Kotlin
A package groups related classes and functions. A Kotlin example with source code and sample output.
kotlin packages
3Import Statements in Kotlin
import brings classes and functions from other packages into scope. A Kotlin example with source code and sample output.
kotlin packages
4Default Imports in Kotlin
Kotlin automatically imports commonly used packages. A Kotlin example with source code and sample output.
kotlin packages
5Naming Packages in Kotlin
Package names should be lowercase without underscores. A Kotlin example with source code and sample output.
kotlin packages
Access Modifiers Overview in Kotlin
public is the default visibility in Kotlin. A Kotlin example with source code and sample output.