A

Admin • 833K Points
Coach

Q. Which of these is a value type in Swift?

  • (A) Class
  • (B) Struct
  • (C) Function
  • (D) Protocol
  • Correct Answer - Option(B)
  • Views: 32
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`Struct` is a value type, whereas `class` is a reference type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.