2015
Treehouse
Pasan Premaratne
1:27
English
Called interfaces in other languages, protocols define a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. Protocols allow us to build flexible, decoupled objects without the limitations of inheritance.
In this course, we’ll learn how to write basic protocols in Swift, how they are used in iOS development and how they lead better code reuse.
Swift 2.0 Protocols
What Is a Protocol?
Creating a Protocol
Declaring a Protocol - 1 objective
Conforming to a Protocol - 1 objective
Why Are Protocols Useful?
Modeling Behavior With Protocols
Protocols With Methods - 2 objectives
Protocols as Types
Review: Protocols - 5 questions
Creating Flexible Objects Using Protocols
Protocol Inheritance
Protocol Inheritance - 2 objectives
Swift's Standard Library Protocols
Protocol Oriented Programming
Protocol Oriented Programming Part 2
Recap
Recap: Flexible Objects with Protocols - 5 questions
teamtreehouse.com/library/swift-20-protocols
Download File Size:105.19 MB