requirements that suit a particular task or piece of functionality. The protocol can then be adopted by a class, structure, or enumeration to provide an actual implementation of those requirements. You can inherit a protocol to build a hierarchy of protocols and to add more requirements. In addition, you can extend a protocol to implement some of these requirements.