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!
β 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