Problem Statement
According to Apple's documentation, which guideline is recommended when choosing between struct and class?
Explanation
Apple's documentation recommends using structures by default, and choosing classes only when you need features that structs don't provide (such as identity, inheritance or Objective-C interoperability). This guideline promotes safer, simpler code.
Practice Sets
This question appears in the following practice sets: