Swift theorytheory 0/50 · 0%
OOP · easy

8. Protocols

Defining a contract.

Protocols define a blueprint of methods or properties for classes/structs to adopt.

Check your understanding

  1. 1. Keyword to adopt protocol?

  2. 2. Can protocols have default implementations?