- Object–Oriented Programming with Swift 2
- Gastón C. Hillar
- 131字
- 2021-07-23 14:29:42
Test your knowledge
- Swift uses one of the following mechanisms to automatically deallocate the memory used by instances that aren't referenced anymore:
- Automatic Random Garbage Collector.
- Automatic Reference Counting.
- Automatic Instance Map Reduce.
- Swift executes an instance's deinitializer:
- Before the instance is deallocated from memory.
- After the instance is deallocated from memory.
- After the instance memory is allocated.
- A deinitializer:
- Can still access all of the instance's resources.
- Can only access the instance's methods but no properties.
- Cannot access any of the instance's resources.
- Swift allows us to define:
- Only one initializer per class.
- A main initializer and two optional secondary initializers.
- Many initializers with different arguments.
- Each time we create an instance:
- We must use argument labels.
- We can optionally use argument labels.
- We don't need to use argument labels.
推薦閱讀
- Developing Middleware in Java EE 8
- MATLAB 2020 從入門到精通
- 機(jī)器人Python青少年編程開發(fā)實(shí)例
- 人臉識別原理及算法:動態(tài)人臉識別系統(tǒng)研究
- 大模型RAG實(shí)戰(zhàn):RAG原理、應(yīng)用與系統(tǒng)構(gòu)建
- Visual Basic程序設(shè)計(jì)實(shí)踐教程
- Learning ArcGIS for Desktop
- Unity 2D Game Development Cookbook
- D3.js By Example
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- JavaScript應(yīng)用開發(fā)實(shí)踐指南
- IBM Cognos TM1 Developer's Certification guide
- 單片機(jī)原理及應(yīng)用技術(shù)
- Python Digital Forensics Cookbook
- Python編程基礎(chǔ)教程