Skip to content

Glossary: Swift Basics

class

Also written: classes

A type like a struct, but a reference type: assigning it to another name shares one object instead of copying. It needs its own `init`.

Where the book teaches it

Related terms

structreference typevalue type