- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 135字
- 2021-07-02 23:54:30
Access control
Access control restricts access to parts of our code from code in other source files and modules. Access levels are as follows:
- Open and Public accesses enable entities to be used within any source file from their defining module and also in a source file from another module that imports the defining module. Open access enables subclassing, as opposed to Public access, which disallows subclassing.
- Internal access enables entities to be used within any source file from their defining module, but not in any source file outside of this module.
- File-private access restricts the use of an entity to its defining source file.
- Private access restricts the use of an entity to its enclosing declaration.
Swift evolution proposals SE-0025 and SE-0117 explain the motivation, proposed solution, and provide code examples for access levels.
推薦閱讀
- GitHub Essentials
- 漫話大數據
- 在你身邊為你設計Ⅲ:騰訊服務設計思維與實戰
- 虛擬化與云計算
- 企業大數據系統構建實戰:技術、架構、實施與應用
- Neural Network Programming with TensorFlow
- Enterprise Integration with WSO2 ESB
- 區塊鏈:看得見的信任
- Filecoin原理與實現
- Access 2016數據庫應用基礎
- Swift Functional Programming(Second Edition)
- 數字化轉型方法論:落地路徑與數據中臺
- Practical Convolutional Neural Networks
- 社交網站的數據挖掘與分析(原書第2版)
- 數據產品經理寶典:大數據時代如何創造卓越產品