O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Protocol inheritance

Protocol inheritance is where one protocol can inherit the requirements from one or more other protocols, as shown in the following code:

protocol MobileAppUserProtocol: UserProtocol { } 

MobileAppUserProtocol inherits from UserProtocol so it will have all the defined and extended methods.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required