Swift Basics — Difference between class and struct
Sep 10, 2021
Class and Struct are very similar accept for the following:
- struct has built in initialisers where as class requires initialisers
- struct are value types similar to Int, Bool etc where as class are reference types