- Which of the following is relevant in Protocol-Oriented Programming?
c) What an object can do.
- Which of the following is not a downside of subclassing?
a) Shared functionality.
- Protocols can inherit from several other protocols. True or false?
a) True.
- An associated type has to be a struct or class. True or false?
b) False.
- In which two ways can a struct specify what type an associated type for a protocol is?
a) By using a typealias.
b) By using generics on the struct.
- What does T mean in genericFunction<T>()?
c) T is a placeholder for the generic type.