Intermediate
Swift
Q47 / 100
What are associated types in a protocol?
Correct! Well done.
Incorrect.
The correct answer is B) Placeholder type names in protocols that conforming types resolve
B
Correct Answer
Placeholder type names in protocols that conforming types resolve
Explanation
protocol Container { associatedtype Element; func append(_ item: Element) } — conforming types define what Element is.
Progress
47/100