書(shū)名: Swift Functional Programming(Second Edition)作者名: Dr. Fatih Nayebi本章字?jǐn)?shù): 86字更新時(shí)間: 2021-07-02 23:54:27
Classes versus structures
This section compares classes and structures:
- Inheritance enables one class to inherit the characteristics of another
- Type casting enables us to check and interpret the type of a class instance at runtime
- De-initializers enable an instance of a class to free any resources it has assigned
- Reference Counting allows more than one reference to a class instance
- Structures are value types so they are always copied when they are passed around in code
- Structures do not use Reference Counting
- Classes are reference types
推薦閱讀
- 計(jì)算機(jī)組成原理與接口技術(shù):基于MIPS架構(gòu)實(shí)驗(yàn)教程(第2版)
- 大規(guī)模數(shù)據(jù)分析和建模:基于Spark與R
- Access 2016數(shù)據(jù)庫(kù)教程(微課版·第2版)
- Python數(shù)據(jù)挖掘:入門(mén)、進(jìn)階與實(shí)用案例分析
- 從0到1:數(shù)據(jù)分析師養(yǎng)成寶典
- 分布式數(shù)據(jù)庫(kù)系統(tǒng):大數(shù)據(jù)時(shí)代新型數(shù)據(jù)庫(kù)技術(shù)(第3版)
- 文本數(shù)據(jù)挖掘:基于R語(yǔ)言
- 云計(jì)算服務(wù)保障體系
- Python醫(yī)學(xué)數(shù)據(jù)分析入門(mén)
- 智能數(shù)據(jù)分析:入門(mén)、實(shí)戰(zhàn)與平臺(tái)構(gòu)建
- Starling Game Development Essentials
- 白話大數(shù)據(jù)與機(jī)器學(xué)習(xí)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程上機(jī)指導(dǎo)與習(xí)題集(微課版)
- 聯(lián)動(dòng)Oracle:設(shè)計(jì)思想、架構(gòu)實(shí)現(xiàn)與AWR報(bào)告
- 數(shù)據(jù)庫(kù)查詢優(yōu)化器的藝術(shù):原理解析與SQL性能優(yōu)化