- 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.
推薦閱讀
- Mastering Visual Studio 2017
- 軟件項目管理(第2版)
- 造個小程序:與微信一起干件正經事兒
- Python數據可視化:基于Bokeh的可視化繪圖
- Twilio Best Practices
- 程序員面試算法寶典
- Hands-On C++ Game Animation Programming
- Learning OpenStack Networking(Neutron)
- Mastering JavaScript Design Patterns(Second Edition)
- C語言開發基礎教程(Dev-C++)(第2版)
- 持續輕量級Java EE開發:編寫可測試的代碼
- FFmpeg開發實戰:從零基礎到短視頻上線
- Tableau Dashboard Cookbook
- Java程序設計入門(第2版)
- Java 7 Concurrency Cookbook