- Learning Swift(Second Edition)
- Andrew J Wagner
- 169字
- 2021-07-16 12:33:07
Chapter 3. One Piece at a Time – Types, Scopes, and Projects
In Chapter 2, Building Blocks – Variables, Collections, and Flow Control, we developed a very simple program that helped organize a party. Even though we separated parts of the code in a logical way, everything was written in a single file and our functions were all lumped together. As projects grow in complexity, this way of organizing code is not sustainable. In the same way we use functions to separate out logical components in our code at scale, we also need to be able to separate out the logical components of our functions and data. To do this, we can define code in different files and we can also create our own types that contain custom data and functionality. These types are commonly referred to as objects, as a part of the programming technique called object-oriented programming. In this chapter we will cover the following:
- Structs
- Classes and inheritance
- Enumerations
- Projects
- Extensions
- Scope
- Access control
- EJB 3.1從入門到精通
- Mastering Node.js(Second Edition)
- 高校網(wǎng)絡(luò)道德教育研究
- GPS/GNSS原理與應(yīng)用(第3版)
- INSTANT PhpStorm Starter
- 物聯(lián)網(wǎng)概論(第2版)
- Proxmox High Availability
- 計算機(jī)網(wǎng)絡(luò)安全實訓(xùn)教程(第二版)
- Spring Cloud微服務(wù)架構(gòu)進(jìn)階
- 基于性能的保障理論與方法
- 夢工廠之材質(zhì)N次方:Maya材質(zhì)手冊
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 物聯(lián)網(wǎng)基礎(chǔ)及應(yīng)用
- Getting Started with tmux
- 從物聯(lián)到萬聯(lián):Node.js與樹莓派萬維物聯(lián)網(wǎng)構(gòu)建實戰(zhàn)