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

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.

主站蜘蛛池模板: 聂拉木县| 百色市| 宜宾县| 千阳县| 崇州市| 维西| 玉门市| 马尔康县| 吉林省| 和政县| 疏附县| 个旧市| 铜山县| 乌恰县| 松溪县| 辉南县| 揭东县| 沁阳市| 万全县| 陵水| 师宗县| 灯塔市| 东莞市| 大兴区| 明溪县| 安阳市| 道孚县| 芦山县| 金阳县| 沅江市| 葫芦岛市| 吉水县| 堆龙德庆县| 襄城县| 通河县| 吉林省| 泸水县| 乐安县| 绥江县| 太谷县| 连云港市|