Quiz: Implementing Interfaces in Python: ABCs and Protocols

Interactive Quiz ⋅ 10 Questions
By Joseph Peart


In this quiz, you’ll test your understanding of
Implementing Interfaces in Python: ABCs and Protocols.

By working through this quiz, you’ll revisit how to model interfaces with abstract base classes and protocols, how to enforce method contracts, and how duck typing lets unrelated classes work together.

Interfaces help you write code that depends on what objects do rather than what they are. Sharpening these skills will make your object-oriented Python more flexible.

The quiz contains 10 questions and there is no time limit. You’ll

 

 

 

To finish reading, please visit source site