- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 127字
- 2021-07-02 14:44:59
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.
推薦閱讀
- 數(shù)據(jù)庫(kù)基礎(chǔ)教程(SQL Server平臺(tái))
- ETL數(shù)據(jù)整合與處理(Kettle)
- DB29forLinux,UNIX,Windows數(shù)據(jù)庫(kù)管理認(rèn)證指南
- 虛擬化與云計(jì)算
- 大數(shù)據(jù)可視化
- PySpark大數(shù)據(jù)分析與應(yīng)用
- 數(shù)據(jù)化網(wǎng)站運(yùn)營(yíng)深度剖析
- 數(shù)亦有道:Python數(shù)據(jù)科學(xué)指南
- 數(shù)據(jù)庫(kù)原理與應(yīng)用(Oracle版)
- MySQL 8.x從入門到精通(視頻教學(xué)版)
- MySQL技術(shù)內(nèi)幕:SQL編程
- Filecoin原理與實(shí)現(xiàn)
- 數(shù)據(jù)賦能
- 大數(shù)據(jù)隱私保護(hù)技術(shù)與治理機(jī)制研究
- AI Crash Course