/testKotlin

kotlin practice project

Primary LanguageKotlin

testKotlin

kotlin practice project

note

kotlin 没有static functions 使用 package-level functions 替代

Visibility Modifiers

  • If you do not specify any visibility modifier, public is used by default, which means that your declarations will be visible everywhere;
  • If you mark a declaration private, it will only be visible inside the file containing the declaration;
  • If you mark it internal, it is visible everywhere in the same module;
  • protected is not available for top-level declarations.