FlashcardIntermediate
Struct vs Class: Value vs Reference Semantics
Structs are value types that copy on assignment, while classes are reference types that share a single instance.
Question
What is the core difference between a struct and a class in Swift?
Click to reveal answer