Summary

In this chapter you’ve learned how to write enums, structs, and classes. You’ve learned how to instantiate those classes and how they each react differently to being passed around. We learned about passing by reference as opposed to by value. We also took a look the difference between methods and functions.

Get Learning Swift™ Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.