官术网_书友最值得收藏!

Private

Any top-level function, class, or interface that is defined as private can only be accessed from the same file.

Inside a class, interface, or object, any private function or property is only visible to other members of the same class, interface, or object:

    class Person { 
      private fun age(): Int = 21 
    } 

Here, the age() function can only be invoked by other functions in the Person class.

主站蜘蛛池模板: 双鸭山市| 南宫市| 南京市| 安康市| 孟村| 通化县| 日照市| 崇明县| 左云县| 天长市| 乌兰县| 墨江| 兴仁县| 清远市| 黄山市| 平遥县| 临湘市| 益阳市| 宜城市| 轮台县| 荔浦县| 新沂市| 洛南县| 黄冈市| 同心县| 含山县| 黎平县| 巴林右旗| 安顺市| 古田县| 扶风县| 黔西| 隆子县| 静海县| 杭州市| 水城县| 天气| 瑞安市| 浠水县| 竹山县| 上思县|