Protocol Or ABC In Python - When to use which one?

Protocol Or ABC In Python - When to use which one?
When should you use protocol classes vs abstract base classes? Here's an example where I use both, talk about the trade-offs and give you a suggestion of when to use each of them.

When should you use protocol classes vs abstract base classes? Here’s an example where I use both, talk about the trade-offs and give you a suggestion of when to use each of them.

πŸ”– Chapters:
0:00 Intro
2:01 Explaining the example
5:56 About abstract base classes
8:47 Protocols, nominal typing and structural typing
10:41 Using protocols
15:34 Splitting the Device class
20:05 When to use protocols vs abstract base classes

#arjancodes #softwaredesign #python

DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

Suggest:

☞ Python Tutorials for Beginners - Learn Python Online

☞ Learn Python in 12 Hours | Python Tutorial For Beginners

☞ Complete Python Tutorial for Beginners (2019)

☞ Python Programming Tutorial | Full Python Course for Beginners 2019

☞ Python Tutorial for Beginners [Full Course] 2019

☞ Learn Python 3 Fundamentals From Scratch