Protocol composition

Protocol composition allows types to conform to more than one protocol. This is one of the many advantages that POP has over OOP. With OOP, a class can have only one superclass, which can lead to very monolithic super classes. With POP, we are encouraged to create multiple smaller protocols with very specific requirements.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset