Forums
Learn
Careers
Store
About
SUBSCRIBE
GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>
Question 1/12: This is a valid protocol – true or false?
Hint: Protocols can declare properties as read-only, but not write-only. Click to show.
protocol Swimmable { var depth { get } }
Correct! This needs a type annotation for depth.
depth
Oops – that's not correct. This needs a type annotation for depth.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.