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 also learned how to declare a structure, create instances of a structure, and understand the differences 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.