官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 富阳市| 礼泉县| 且末县| 伊宁市| 尼玛县| 金门县| 平利县| 吴忠市| 德令哈市| 莲花县| 琼结县| 古蔺县| 莲花县| 高州市| 黄梅县| 中方县| 北安市| 五河县| 牡丹江市| 彰化市| 开阳县| 邵武市| 中西区| 白玉县| 铜梁县| 慈溪市| 那曲县| 淳安县| 习水县| 芜湖市| 桂东县| 屯门区| 四子王旗| 旅游| 石林| 抚松县| 离岛区| 宁化县| 仁怀市| 皋兰县| 明光市|