Summary
In this chapter, we took an in-depth look at classes and structures. We saw what makes them so similar and also what makes them so different. In the upcoming chapters, it will be important to remember that classes are reference types while structures are value types. We also looked at protocols and extensions. As this chapter ends, we end the introduction to the Swift programming language. At this point, we have enough knowledge of the Swift language to begin writing our own applications; however, there is still much to learn. In the following chapters, we will look in more depth at some of the concepts that we've already discussed, such as protocols and subscripts. We will also see how we can use protocol-oriented programming techniques to write easy-to-manage code. Finally, we will have chapters that will help us write better code, such as a sample Swift style guide, and a chapter on design patterns.