Problem Statement
Which of the following is a limitation of structs compared to classes in Swift?
Explanation
In Swift, structs do not support inheritance from other types (they can conform to protocols, but cannot subclass). Classes support inheritance. This limitation influences when you choose classes vs structs.
Practice Sets
This question appears in the following practice sets: