A Admin • 828.03K Points Coach Q. Which of the following is a correct way to declare a computed read-only property? (A) var square = side * side (B) var square: Int { return side * side } (C) let square = side * side (D) var square() -> Int Correct Answer - Option(B) Views: 19 Filed under category Swift (iOs) Hashtags: Share Manage Tags
Discusssion
Login to discuss.