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

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.

主站蜘蛛池模板: 平和县| 宁强县| 教育| 哈尔滨市| 和龙市| 辽中县| 武山县| 高州市| 稷山县| 将乐县| 太谷县| 江油市| 江源县| 社旗县| 江孜县| 曲沃县| 巩义市| 盐池县| 武清区| 萍乡市| 富民县| 江油市| 宝鸡市| 柳河县| 乌兰察布市| 金塔县| 额济纳旗| 新建县| 拜泉县| 晋江市| 正蓝旗| 通州区| 巨鹿县| 房产| 武强县| 固安县| 鹿泉市| 金川县| 元阳县| 平山县| 富宁县|