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

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.

主站蜘蛛池模板: 广昌县| 华容县| 蒙城县| 新沂市| 绿春县| 嘉定区| 上思县| 金塔县| 岳普湖县| 武义县| 玛多县| 汨罗市| 遵义市| 长治县| 合阳县| 平湖市| 岑溪市| 南通市| 安图县| 大埔区| 平陆县| 贡觉县| 内黄县| 屯昌县| 大厂| 云林县| 娱乐| 山阳县| 车险| 尼勒克县| 东兴市| 宝应县| 凤台县| 安国市| 遂溪县| 阿荣旗| 南部县| 高淳县| 汝城县| 门源| 溧水县|