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

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.

主站蜘蛛池模板: 承德市| 元朗区| 新邵县| 海淀区| 噶尔县| 渝北区| 额济纳旗| 科尔| 大足县| 通辽市| 彝良县| 扶沟县| 佳木斯市| 道真| 东港市| 望城县| 印江| 彩票| 龙江县| 上虞市| 庐江县| 叙永县| 凤山市| 双辽市| 电白县| 抚宁县| 萝北县| 大丰市| 苍山县| 赤壁市| 麦盖提县| 莫力| 噶尔县| 潢川县| 竹溪县| 夹江县| 南漳县| 彝良县| 延安市| 东丽区| 延长县|