Summary
In this chapter, you learned how to declare complex objects using a class, create instances of a class, create a subclass, and override a class method. You’ve also learned how to declare a structure, create instances of a structure, and understand the difference between reference and value types. Finally, you learned how to use enumerations to represent a specific set of values.
You now know how to how to use classes and structures to represent complex objects, and how to use enumerations to group related values together in your own programs.
In the next chapter, you will study how to specify common traits in classes and structures using protocols, extend the capability of built-in classes using extensions, and handle errors in your programs.
Learn more on Discord
To join the Discord community for this book – where you can share feedback, ask questions to the author, and learn about new releases – follow the QR code below: