stackoverflow-swift-question-3
Swift · · 1 min read
Why Choose Struct Over Class?
Stack Overflow Question
Link: https://stackoverflow.com/questions/24232799/why-choose-struct-over-class
Published: 2014-06-15T18:33:02Z
Updated: 2026-05-11T06:33:07Z
Author: bluedevil2k
Tags: swift, class, struct, value-type, design-principles
Summary:
<p>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?</p>