A Admin • 670.22K Points Coach Report 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: 1 Filed under category Swift (iOs) Hashtags: Share Manage Tags
Discusssion
Login to discuss.