Forums
Learn
Careers
Store
About
SUBSCRIBE
TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>
Question 1/12: This code is valid Swift – true or false?
Hint: Only extensions contain method implementations. To conform to a protocol, all types must implement the protocol's methods. Click to show.
protocol HasAge { var age: Int { get set } mutating func celebrateBirthday() }
Correct! This code is valid Swift.
Oops – that's not correct. This code is valid Swift.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.