A

Admin • 670.22K Points
Coach

Q. How do you make a property read-only in Swift?

  • (A) By using let
  • (B) By using private
  • (C) By using get-only computed property
  • (D) By using final
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
A computed property with only a `get` clause is read-only.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.