- 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.
推薦閱讀
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- ExtGWT Rich Internet Application Cookbook
- PWA入門與實踐
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- Apache Spark 2.x Machine Learning Cookbook
- Magento 2 Development Cookbook
- C語言程序設計案例精粹
- C程序設計案例教程
- 微信小程序入門指南
- 程序是怎樣跑起來的(第3版)
- Spring Boot+Vue全棧開發實戰
- MongoDB Cookbook(Second Edition)
- PhoneGap 4 Mobile Application Development Cookbook
- Android應用開發攻略
- 優化驅動的設計方法