Why Choose Struct Over Class?
Asked 07 September, 2021
Viewed 3K times
  • 52
Votes

Playing around with Swift, coming from a Java background, why would you want to choose a Struct instead of a Class? Seems like they are the same thing, with a Struct offering less functionality. Why choose it then?

17 Answer