A

Admin • 670.22K Points
Coach

Q. Which of the following is true about structs in Swift?

  • (A) Structs support inheritance
  • (B) Structs are passed by reference
  • (C) Structs are value types
  • (D) Structs can have deinit methods
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
Structs are value types and are copied when passed around.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.