Kotlin supports top-level and extension properties in addition to top-level functions and extension functions. Top-level properties allow us to define scoped constants or other values independent of any enclosing class.
Kotlin supports top-level and extension properties in addition to top-level functions and extension functions. Top-level properties allow us to define scoped constants or other values independent of any enclosing class.