Protocols in Swift: Types, class-only, composition & optional requirements

preview_player
Показать описание
Hello guys, welcome to another video!. In this part three, we will explore how to use protocols as a regular type, limit their usage to only classes, conform to many protocols at the same time by composition, and how we can set default methods and properties in Swift.
I strongly recommend watching Part 1 and 2 first, because many pieces of code we wrote there:

Content:
0:05 - Protocols as types
1:44 - Protocols in collections
6:35 - Class-only protocol
7:43 - Protocol composition
13:26 - Optional methods & properties (extension)
16:20 - Outro

------
References:

------
Other videos in the channel:

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:

Finally, ask me for a video you would like to see next 😄!

Credits:
- Video edited with LumaFusion
Рекомендации по теме
Комментарии
Автор

Informative Content.
Can you please make a video on protobufs(Protocol Buffers)?

nomanharoon
Автор

Nice Explanation.
If possible please do video about Associated types in protocols.

Thank you :-)

lokeshios
join shbcf.ru