官术网_书友最值得收藏!

Protocols

The following is from Apple's Swift Programming Language book:

"A protocol defines a blueprint of methods, properties, and other 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. Any type that satisfies the requirements of a protocol is said to conform to that protocol."  
– Apple Inc., The Swift Programming Language (Swift 3.0.1), iBooks

Protocol-oriented programming is a vast topic that also deserves coverage. It is the subject of many discussions, and I won't dive into it in depth. However, let's go over the basic concepts, as they will be useful for understanding some concepts that will be explained later in this book.

主站蜘蛛池模板: 灯塔市| 辛集市| 额尔古纳市| 隆化县| 灵丘县| 桑日县| 聊城市| 大同市| 黄冈市| 永登县| 德昌县| 杨浦区| 澄江县| 徐汇区| 福贡县| 阳高县| 康马县| 交口县| 桃源县| 梁河县| 特克斯县| 紫金县| 福贡县| 望谟县| 惠东县| 泽普县| 镇坪县| 从江县| 渑池县| 桦南县| 伊宁县| 台南市| 京山县| 阜新市| 武定县| 武冈市| 聊城市| 柳河县| 和田县| 谷城县| 中江县|