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

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.

主站蜘蛛池模板: 灌阳县| 营口市| 岳阳县| 南和县| 祁连县| 洛宁县| 三门县| 南投市| 原平市| 林西县| 清原| 南丹县| 台安县| 大荔县| 衡阳市| 泰兴市| 翁牛特旗| 北川| 咸宁市| 修水县| 尉犁县| 封开县| 牟定县| 石城县| 揭西县| 通海县| 固镇县| 文安县| 醴陵市| 青河县| 新建县| 洛南县| 广平县| 甘南县| 确山县| 平果县| 石泉县| 长乐市| 柘城县| 襄樊市| 安多县|