Skip to main content
Learn tech skills with top-tier courses for programming fundamentals and interview prep.
Try Educative
Interview Handbook
Get Started
Table of Contents
Disciplines
Backend
Machine Learning
Web/Frontend
Mobile
Data Science
Data Engineering
Product Management
Fundamentals
Quiz
Educative.io
HackTheRounds
Search
Question 1 of 23
What is the difference between a struct and a class in Swift?
Swift
A
Structs are value types with copy semantics; classes are reference types
B
Structs are reference types; classes are value types
C
Structs cannot have methods; classes can
D
Structs are faster but cannot conform to protocols
Check Answer