SwSwift · Lesson 4 of 8
Structs, Enums & Value Types
Swift's twist on OOP: structs (copied on assignment) are the default, classes (shared references) the exception. And Swift enums carry data — they're a superpower, not a list of constants.
Classes exist too (class Student { }) with inheritance and reference semantics — SwiftUI and most modern Swift use them sparingly. Protocols (Swift's interfaces) plus structs cover most designs: define capabilities as protocols, adopt them in small value types.