- Learn Kotlin Programming(Second Edition)
- Stephen Samuel Stefan Bocutiu
- 71字
- 2021-06-24 14:13:29
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.
推薦閱讀
- JavaScript全程指南
- Developing Middleware in Java EE 8
- Designing Hyper-V Solutions
- Python Tools for Visual Studio
- Flux Architecture
- Learning Apache Mahout Classification
- Oracle從入門到精通(第5版)
- 移動界面(Web/App)Photoshop UI設計十全大補
- Angular開發入門與實戰
- Python Data Structures and Algorithms
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- Kubernetes進階實戰
- Visual FoxPro 6.0程序設計
- Node.js從入門到精通
- 愛上C語言:C KISS