- 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.
推薦閱讀
- Google Flutter Mobile Development Quick Start Guide
- AngularJS入門與進階
- 深入淺出Spring Boot 2.x
- C語言程序設計(第2版)
- Servlet/JSP深入詳解
- 營銷數據科學:用R和Python進行預測分析的建模技術
- Java Web應用開發技術與案例教程(第2版)
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- Unity 3D腳本編程:使用C#語言開發跨平臺游戲
- HTML5+CSS3+jQuery Mobile APP與移動網站設計從入門到精通
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- Learning Cocos2d-JS Game Development
- PostgreSQL 12 High Availability Cookbook
- Scratch編程從入門到精通