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

Summary

In this chapter, you learned how to recognize real-world elements and translate them into the different components of the object-oriented paradigm supported in Swift: classes, protocols, properties, methods, and instances. You understood that the classes represent blueprints or templates to generate the objects, also known as instances.

We designed a few classes with properties and methods that represent blueprints for real-life objects. Then, we improved the initial design by taking advantage of the power of abstraction and specialized different classes. We generated many versions of the initial UML diagram as we added superclasses and subclasses. Finally, we wrote some code in the Swift Playground to understand how we can interact with API objects.

Now that you have learned some of the basics of the object-oriented paradigm, we are ready to start creating classes and instances in Swift, which is the topic of the next chapter.

主站蜘蛛池模板: 行唐县| 抚宁县| 长子县| 门头沟区| 孟村| 江陵县| 临颍县| 东海县| 清镇市| 文化| 淳化县| 阜平县| 全椒县| 周至县| 湖州市| 莱芜市| 博湖县| 延安市| 扶风县| 汤原县| 抚顺市| 铁力市| 蒙阴县| 汝阳县| 祁门县| 潞城市| 萨嘎县| 和田市| 大邑县| 兖州市| 蛟河市| 那曲县| 津市市| 宜宾市| 华宁县| 开封市| 雷波县| 长兴县| 武陟县| 台湾省| 玉溪市|