R

Ravina • 3.96K Points
Extraordinary

Q. Which of the following is true about Swift 'struct'?

  • (A) Structs are reference types
  • (B) Structs support inheritance
  • (C) Structs are value types
  • (D) Structs must be declared as final
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina

Unlike classes, structs in Swift are value types and do not support inheritance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.