public keyword
You can use public to declare the visibility of your functions and
methods.
If a function or method does not have public, it can only be used in
the current file where it is defined.
fun visible_in_the_current_file() {}If you use public, you are declaring a function that can be used
anywhere.
Enum variants can also be marked public, so other files can use
them.
The keyword shared is currently reserved for an additional
visibility level.