Technical requirements
The Xcode playground for this chapter can be found in the Chapter07 folder of the code bundle for this book, which can be downloaded here:https://github.com/PacktPublishing/-iOS-26-Programming-for-Beginners-10E.If you wish to start from scratch, create a new playground and name it ClassesStructuresAndEnumerations. You can type in and run all the code in this chapter as you go along. Let’s start with learning what a class is and how to declare and define it.