- Object–Oriented Programming with Swift 2
- Gastón C. Hillar
- 98字
- 2021-07-23 14:29:42
Summary
In this chapter, you learned about an object's life cycle. You also learned how object initializers and deinitializers work. We declared our first class to generate a blueprint for objects. We customized object initializers and deinitializers and tested their personalized behavior in action with live examples in Swift's Playground. We understood how they work in combination with automatic reference counting.
Now that you have learned to start creating classes and instances, we are ready to share, protect, use and hide data with the data encapsulation features included in Swift, which is the topic of the next chapter.
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- Practical UX Design
- Scratch真好玩:教小孩學編程
- Python數據分析(第2版)
- WordPress Plugin Development Cookbook(Second Edition)
- The Data Visualization Workshop
- 區塊鏈底層設計Java實戰
- 利用Python進行數據分析
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- Hands-On Neural Network Programming with C#
- Maker基地嘉年華:玩轉樂動魔盒學Scratch
- OpenCV with Python Blueprints
- 零基礎學C++(升級版)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- 視窗軟件設計和開發自動化:可視化D++語言